hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haibo Chen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (MAPREDUCE-5752) Potential invalid iterator in NMClientImpl#cleanupRunningContainers()
Date Thu, 21 Jul 2016 06:21:20 GMT

     [ https://issues.apache.org/jira/browse/MAPREDUCE-5752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Haibo Chen resolved MAPREDUCE-5752.
-----------------------------------
    Resolution: Invalid

> 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.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org


Mime
View raw message