[
https://issues.apache.org/jira/browse/BOOKKEEPER-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Kelly updated BOOKKEEPER-279:
----------------------------------
Fix Version/s: (was: 4.2.0)
> LocalBookKeeper is failing intermittently due to zkclient connection
> establishment delay
> ----------------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-279
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-279
> Project: Bookkeeper
> Issue Type: Bug
> Components: bookkeeper-client
> Affects Versions: 4.0.0
> Reporter: Rakesh R
> Assignee: Rakesh R
> Fix For: 4.1.0
>
> Attachments: BOOKKEEPER-279.1.patch, BOOKKEEPER-279.2.patch,
> BOOKKEEPER-279.patch
>
>
> LocalBookKeeper is initializing the zkclient and immediately trying to create
> "/ledgers" and "/ledgers/available" znodes without waiting for the ZooKeeper
> SyncConnected state. The client operation should be guarded with
> ZKConnectionWatcher.
> LocalBookKeeper.java
> {noformat}
> zkc = new ZooKeeper("127.0.0.1", ZooKeeperDefaultPort, new emptyWatcher());
> /* User for testing purposes, void */
> static class emptyWatcher implements Watcher {
> public void process(WatchedEvent event) {}
> }
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira