-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection to ZooKeeper lost on OS X #16
Comments
The problem seems to be that we use the logging
before calling
shows that the
|
waiting for state i also found Apache Curator. it's a framework built on top of ZooKeeper and provides a higher-level API as well as connection guarantees. i think it might be a good idea for us to use Curator. |
Apparently, it can rarely happen that the connection setup last longer than the execution of the constructor. But this can be solved easily by adding a new statement in the switch of the Watcher. It should execute the initDirectories method after receiving the connected state. |
well, all further interactions with the ZooKeeper files need the connection to be established, not just |
i'll also have a look at Curator in the next days. would just be cool to have it take care of connection establishment and failures for us. |
running the example clients currently fails on OS X with the following output:
this is the case for both the state on master (e.g.
SimpleClient
at 90147c3) and develop (e.g.IntegrationTests
at 87451d6).stepping through these clients sometimes leads to successful runs, which might suggest a timing issue and not a general problem with OS X.
The text was updated successfully, but these errors were encountered: