Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-1064

ConcurrentModificationException in AuditorLedgerCheckerTest

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.5.0
    • None
    • None

    Description

      As seen in:
      https://builds.apache.org/job/bookkeeper-master-git-pullrequest/371/

      The test is iterating over a hash map that gets updated by a different thread. The map needs to be concurrent.

      java.util.ConcurrentModificationException
      	at org.apache.bookkeeper.replication.AuditorLedgerCheckerTest.stopAuditorElectors(AuditorLedgerCheckerTest.java:130)
      	at org.apache.bookkeeper.replication.AuditorLedgerCheckerTest.tearDown(AuditorLedgerCheckerTest.java:114)
      

      All subsequent tests in the same class are failing because of the 1st test not cleaning up properly.

      Attachments

        Issue Links

          Activity

            People

              mmerli Matteo Merli
              mmerli Matteo Merli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: