[
https://issues.apache.org/jira/browse/BOOKKEEPER-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flavio Junqueira updated BOOKKEEPER-29:
---------------------------------------
Attachment: BOOKKEEPER-29-v2.patch
This patch does a few things:
- It adds a call to BookKeeper to enable updates to the list of a BookieWatcher
object from a test;
- It makes sure that the change in the list of bookies is the one we expect by
checking continuously if the corresponding znode exists. This change actually
simplifies the code of the test;
- It also moves the call to instantiateZookeeperClient in the constructor of
Bookie to after the initialization of the Bookie. This way we make sure that
the bookie is ready to answer once it has registered with zookeeper.
> BookieRecoveryTest fails intermittently
> ---------------------------------------
>
> Key: BOOKKEEPER-29
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-29
> Project: Bookkeeper
> Issue Type: Bug
> Reporter: Ivan Kelly
> Assignee: Flavio Junqueira
> Fix For: 3.4.0
>
> Attachments: BK-29.diff, BK-29.diff, BK-29.diff, BK-29.diff,
> BOOKKEEPER-29-v2.patch, BOOKKEEPER-29.patch, BOOKKEEPER-29.patch,
> org.apache.bookkeeper.test.BookieRecoveryTest.txt
>
>
> The failure doesn't hit every time. You have to run, multiple times. From
> bookkeeper-server, run mvn test -Dtest=BookieRecoveryTest multiple times to
> repro.
> Test output is attached.
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.bookkeeper.test.BookieRecoveryTest
> log4j:WARN No appenders could be found for logger
> (org.apache.bookkeeper.test.BaseTestCase).
> log4j:WARN Please initialize the log4j system properly.
> Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.794 sec <<<
> FAILURE!
> Results :
> Tests in error:
>
> testAsyncBookieRecoveryToSpecificBookie[1](org.apache.bookkeeper.test.BookieRecoveryTest)
> Tests run: 8, Failures: 0, Errors: 1, Skipped: 0
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira