hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-5752) Potential invalid iterator in NMClientImpl#cleanupRunningContainers()
Date Tue, 11 Feb 2014 21:13:21 GMT
Ted Yu created MAPREDUCE-5752:
---------------------------------

             Summary: Potential invalid iterator in NMClientImpl#cleanupRunningContainers()
                 Key: MAPREDUCE-5752
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5752
             Project: Hadoop Map/Reduce
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


In cleanupRunningContainers() :
{code}
    for (StartedContainer startedContainer : startedContainers.values()) {
      try {
        stopContainer(startedContainer.getContainerId(),
            startedContainer.getNodeId());
{code}
Removal of container is done in removeStartedContainer():
{code}
    startedContainers.remove(container.containerId);
{code}
This may result in invalid iterator for the loop on startedContainers.values()



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message