You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Rakesh R (JIRA)" <ji...@apache.org> on 2012/05/31 13:27:22 UTC

[jira] [Created] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

Rakesh R created BOOKKEEPER-279:
-----------------------------------

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


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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Sijie Guo edited comment on BOOKKEEPER-279 at 6/1/12 9:57 AM:
--------------------------------------------------------------

[~rakeshr] the patch introduced junit package in LocalBookKeeper. but junit package scope is just for testing. It would be better to remove junit-related staffs from LocalBookKeeper.
                
      was (Author: hustlmsp):
    [~rakeshr] the patch introduced junit package in LocalBookKeeper. but junit package scope is just for testing. I would be better to remove junit-related staffs from LocalBookKeeper.
                  
> 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.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Sijie Guo commented on BOOKKEEPER-279:
--------------------------------------

the patch looks good to me, [~rakeshr]. +1
                
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Flavio Junqueira commented on BOOKKEEPER-279:
---------------------------------------------

Assuming the vote on the current release candidate passes, one option is to have a bug fix release 4.1.1 that includes this issue rather than wait until 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.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Uma Maheswara Rao G commented on BOOKKEEPER-279:
------------------------------------------------

{quote}
Assuming the vote on the current release candidate passes, one option is to have a bug fix release 4.1.1 that includes this issue rather than wait until 4.2.0.
{quote}
+1, we can include this in 4.1.1, Until we did not find any blockers in this RC.
                
> 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.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Rakesh R updated BOOKKEEPER-279:
--------------------------------

    Attachment: BOOKKEEPER-279.1.patch

Thanks Sijie. Updated the patch by fixing the comment. Since ZooKeeperDefaultPort is always 2181, I have reused the HOSTPORT='127.0.0.1:2181' as connectstring.
                
> 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.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Hudson commented on BOOKKEEPER-279:
-----------------------------------

Integrated in bookkeeper-trunk #544 (See [https://builds.apache.org/job/bookkeeper-trunk/544/])
    BOOKKEEPER-279: LocalBookKeeper is failing intermittently due to zkclient connection establishment delay (Rakesh R via sijie) (Revision 1346257)

     Result = ABORTED
sijie : 
Files : 
* /zookeeper/bookkeeper/trunk/CHANGES.txt
* /zookeeper/bookkeeper/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/LocalBookKeeper.java

                
> 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, 4.2.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Rakesh R updated BOOKKEEPER-279:
--------------------------------

    Attachment: BOOKKEEPER-279.patch

Attached the patch. Didnot include any test case as the zk instance is not visible. Appreciate any ideas:)

Also, I have corrected the sessiontimeout parameter in the patch.
                
> 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.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Rakesh R commented on BOOKKEEPER-279:
-------------------------------------

Since you already cut the branch and not a blocker issue, agree moving to 4.2.0 version. If you have chance to do one more RC, then will include this also. I'll manage internally this.
                
> 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.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Rakesh R updated BOOKKEEPER-279:
--------------------------------

    Attachment: BOOKKEEPER-279.2.patch

Oh! thats correct. Thanks Sijie. Attached latest patch by addressing Sijie comment.
Please review.
                
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Sijie Guo commented on BOOKKEEPER-279:
--------------------------------------

the patch seems good to me. just one comment.

{code}
-            zkc = new ZooKeeper("127.0.0.1", ZooKeeperDefaultPort, new emptyWatcher());
+            CountdownWatcher zkConnectionWatcher = new CountdownWatcher();
+            zkc = new ZooKeeper("127.0.0.1", zkSessionTimeOut,
+                    zkConnectionWatcher);
{code}

from my knowledge, if user doesn't specify zookeeper port in connect string, it would use default port to connect. so if I changed ZooKeeperDefaultPort, the ZooKeeper instance would not work probably. So why not append ZooKeeperDefaultPort after '127.0.0.1'?


                
> 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.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Sijie Guo commented on BOOKKEEPER-279:
--------------------------------------

[~rakeshr] the patch introduced junit package in LocalBookKeeper. but junit package scope is just for testing. I would be better to remove junit-related staffs from LocalBookKeeper.
                
> 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.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (BOOKKEEPER-279) LocalBookKeeper is failing intermittently due to zkclient connection establishment delay

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

Sijie Guo commented on BOOKKEEPER-279:
--------------------------------------

oh, I just noticed that the jira is marked as 4.1.0. But I have cut a release 4.1.0 before this jira.

[~rakeshr] I would suggest moving it into 4.2.0. Is it OK for me?
                
> 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.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira