Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5752

Potential invalid iterator in NMClientImpl#cleanupRunningContainers()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • None
    • None
    • None
    • None

    Description

      In cleanupRunningContainers() :

          for (StartedContainer startedContainer : startedContainers.values()) {
            try {
              stopContainer(startedContainer.getContainerId(),
                  startedContainer.getNodeId());
      

      Removal of container is done in removeStartedContainer():

          startedContainers.remove(container.containerId);
      

      This may result in invalid iterator for the loop on startedContainers.values()

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: