You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Ivan Kelly (JIRA)" <ji...@apache.org> on 2012/05/09 12:59:57 UTC

[jira] [Commented] (BOOKKEEPER-245) Intermittent failures in PersistanceManager tests

    [ 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