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

Ivan Kelly commented on BOOKKEEPER-245:
---------------------------------------

TestLocalDBPersistenceManagerBlackBox failure is caused by DERBY-2074. Bumping 
the derby dependency fixes it.

TestBookKeeperPersistenceManagerWhiteBox fails because the PM thinks that it 
doesn't own the topic. This is because we randomly clear the topic list so that 
we will use multiple ledgers. If we do this on the last iteration of the outer 
loop, when we try to scan it will think that we don't own the topic. The 
solution is to acquire the topic before to scan to ensure that we have it.
{code}
// once in every 10 times, give up ledger
if (r.nextInt(10) == 9) {
    // Make the bkpm lose its memory
    bkpm.topicInfos.clear();
    numPrevLedgers++;
}
{code}
                
> Intermittent failures in PersistanceManager tests
> -------------------------------------------------
>
>                 Key: BOOKKEEPER-245
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-245
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.1.0
>
>
> TestLocalDBPersistenceManagerBlackBox sometimes fails[1]. As does 
> TestBookKeeperPersistenceManagerWhiteBox[2].
> [1] https://builds.apache.org/job/bookkeeper-trunk/481/
> [2] https://builds.apache.org/job/bookkeeper-trunk/498/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to