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

YARN Service component update PUT API should not use component name from JSON body

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • api, yarn-native-services
    • None

    Description

      The YARN Service PUT API for component update should not use component name from the JSON body. The component update PUT URI is as follows -
      http://localhost:9191/app/v1/services/<service_name>/components/<comp_name>
      e.g. http://localhost:9191/app/v1/services/hello-world/components/hello

      The component name is already in the URI, hence the JSON body expected should be only -

      {
          "number_of_containers": 3
      }
      

      It should not expect the name attribute in the JSON body. In fact, if the JSON body contains a name attribute with value anything other than the <comp_name> in the path param, we should send a 400 bad request saying they do not match. If they are the same, it should be okay and we can process the request.

      Attachments

        1. YARN-7836.001.patch
          5 kB
          Gour Saha
        2. YARN-7836.002.patch
          5 kB
          Gour Saha
        3. YARN-7836.003.patch
          7 kB
          Gour Saha

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: