You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Mike Drob (JIRA)" <ji...@apache.org> on 2014/07/31 23:23:40 UTC

[jira] [Created] (CURATOR-131) Should not modify collection while iterating over it

Mike Drob created CURATOR-131:
---------------------------------

             Summary: Should not modify collection while iterating over it
                 Key: CURATOR-131
                 URL: https://issues.apache.org/jira/browse/CURATOR-131
             Project: Apache Curator
          Issue Type: Bug
            Reporter: Mike Drob
            Assignee: Jordan Zimmerman
            Priority: Minor
             Fix For: 2.7.0


A couple of places in the code attempt to remove elements from a map while iterating over it, but without using the iterator. This can lead to undefined behaviour including skipping elements, repeating elements, or ConcurrentModificationException thrown.

Static analysis tools can help spot these locations.



--
This message was sent by Atlassian JIRA
(v6.2#6252)