Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce >> mail # dev >> [jira] [Created] (MAPREDUCE-5739) DirectoryCollection#createNonExistentDirs() may use an invalid iterator


Copy link to this message
-
[jira] [Created] (MAPREDUCE-5739) DirectoryCollection#createNonExistentDirs() may use an invalid iterator
Ted Yu created MAPREDUCE-5739:
---------------------------------

             Summary: 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.1.5#6160)

 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB