You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/11 16:44:04 UTC

[jira] [Commented] (BOOKKEEPER-1064) ConcurrentModificationException in AuditorLedgerCheckerTest

    [ https://issues.apache.org/jira/browse/BOOKKEEPER-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16006747#comment-16006747 ] 

ASF GitHub Bot commented on BOOKKEEPER-1064:
--------------------------------------------

GitHub user merlimat opened a pull request:

    https://github.com/apache/bookkeeper/pull/151

    BOOKKEEPER-1064: ConcurrentModificationException in AuditorLedgerCheckerTest

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/merlimat/bookkeeper bk-1064-auditor-ledger-test

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/bookkeeper/pull/151.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #151
    
----

----


> ConcurrentModificationException in AuditorLedgerCheckerTest
> -----------------------------------------------------------
>
>                 Key: BOOKKEEPER-1064
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-1064
>             Project: Bookkeeper
>          Issue Type: Test
>            Reporter: Matteo Merli
>            Assignee: Matteo Merli
>            Priority: Minor
>             Fix For: 4.5.0
>
>
> 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.
> {noformat}
> java.util.ConcurrentModificationException
> 	at org.apache.bookkeeper.replication.AuditorLedgerCheckerTest.stopAuditorElectors(AuditorLedgerCheckerTest.java:130)
> 	at org.apache.bookkeeper.replication.AuditorLedgerCheckerTest.tearDown(AuditorLedgerCheckerTest.java:114)
> {noformat}
> All subsequent tests in the same class are failing because of the 1st test not cleaning up properly.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)