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:55:55 UTC

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

Ivan Kelly created BOOKKEEPER-245:
-------------------------------------

             Summary: 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

        

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

Posted by "Ivan Kelly (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Kelly updated BOOKKEEPER-245:
----------------------------------

    Attachment: BOOKKEEPER-245.diff

The patch fixes as stated in previous comment, and also fixes it so that if the white box bug manifests, it shows as a proper exception, and not a NPE.
                
> 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
>
>         Attachments: BOOKKEEPER-245.diff
>
>
> 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

        

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

Posted by "Ivan Kelly (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272315#comment-13272315 ] 

Hudson commented on BOOKKEEPER-245:
-----------------------------------

Integrated in bookkeeper-trunk #502 (See [https://builds.apache.org/job/bookkeeper-trunk/502/])
    BOOKKEEPER-245: Intermittent failures in PersistanceManager tests (ivank) (Revision 1336569)

     Result = ABORTED
ivank : 
Files : 
* /zookeeper/bookkeeper/trunk/CHANGES.txt
* /zookeeper/bookkeeper/trunk/hedwig-server/pom.xml
* /zookeeper/bookkeeper/trunk/hedwig-server/src/test/java/org/apache/hedwig/server/persistence/TestBookkeeperPersistenceManagerWhiteBox.java

                
> 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
>
>         Attachments: BOOKKEEPER-245.diff
>
>
> 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

        

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

Posted by "Sijie Guo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271391#comment-13271391 ] 

Sijie Guo commented on BOOKKEEPER-245:
--------------------------------------

yes, ur right. I did find this issue and fix it in BOOKKEEPER-191. 

It would be better to fix it in separated issue. thanks Ivan. the patch looks good to me. +1
                
> 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
>
>         Attachments: BOOKKEEPER-245.diff
>
>
> 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