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-5739) DirectoryCollection#createNonExistentDirs() may use an invalid iterator
Date Thu, 21 Jul 2016 06:23:20 GMT

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

Haibo Chen resolved MAPREDUCE-5739.
-----------------------------------
    Resolution: Fixed

> DirectoryCollection#createNonExistentDirs() may use an invalid iterator
> -----------------------------------------------------------------------
>
>                 Key: MAPREDUCE-5739
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5739
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Ted Yu
>
> Here is related code:
> {code}
>     for (final String dir : localDirs) {
>       try {
>         createDir(localFs, new Path(dir), perm);
>       } catch (IOException e) {
>         LOG.warn("Unable to create directory " + dir + " error " +
>             e.getMessage() + ", removing from the list of valid directories.");
>         localDirs.remove(dir);
> {code}
> Call to localDirs.remove() modifies Iterable "localDirs" which invalidates the iterator.



--
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