You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Gour Saha (JIRA)" <ji...@apache.org> on 2018/02/21 19:50:03 UTC

[jira] [Created] (YARN-7955) Calling stop on an already stopped service says "Successfully stopped service"

Gour Saha created YARN-7955:
-------------------------------

             Summary: Calling stop on an already stopped service says "Successfully stopped service"
                 Key: YARN-7955
                 URL: https://issues.apache.org/jira/browse/YARN-7955
             Project: Hadoop YARN
          Issue Type: Sub-task
    Affects Versions: 3.1.0
            Reporter: Gour Saha


If you invoke "yarn app -stop <service_name>" on an already stopped service it confusingly responds with message "Successfully stopped service <service_name>". It should say "Service is already stopped".

The same is seen with the REST API PUT request with data \{ "state": "STOPPED"}, the response is 200 OK and diagnostics with same messageĀ "Successfully stopped service <service_name>". It should return 400 Bad Request with message "Service is already stopped".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org