Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-386 [Umbrella] YARN API Changes
  3. YARN-489

Setter of xxxxPBImpl doesn't really set the collection, but append its items to an existing collection

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      For example, AllocateResponsePBImpl#setAllocatedContainers, AllocateResponsePBImpl#setUpdatedNodes, CountersPBImpl#addAllCounterGroups and ContainerLaunchContextPBImpl#setLocalResources.

      In particular, in ContainerLaunchContextPBImpl, setters will clean up the list before appending the items.

      We need to investigate the issue to ensure all cases of collection setter are handled correctly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zjshen Zhijie Shen
                Reporter:
                zjshen Zhijie Shen
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: