Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-131

Should not modify collection while iterating over it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            randgalt Jordan Zimmerman
            mdrob Mike Drob
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: