Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7054 Yarn Service Phase 2
  3. YARN-7955

Calling stop on an already stopped service says "Successfully stopped service"

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • None
    • None

    Description

      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".

      Attachments

        1. YARN-7955.002.patch
          15 kB
          Gour Saha
        2. YARN-7955.001.patch
          15 kB
          Gour Saha

        Activity

          People

            gsaha Gour Saha
            gsaha Gour Saha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: