jira-importer commented on issue #585: URL: https://github.com/apache/curator/issues/585#issuecomment-2604700461
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=randgalt">randgalt</a>:</i> <p>> the first getData() fails because of session expiry (should be nearly instantly) <br/> This is an incorrect assumption. Curator manages the ZooKeeper connection for you. When there is a session expiration, Curator will try to re-establish a connection.</p> <p>Also, you should be aware that ZooKeeper watches are single threaded. There is a Curator Tech Note on this (though the issue is with ZooKeeper and not Curator): <a href="https://cwiki.apache.org/confluence/display/CURATOR/TN1" class="external-link" target="_blank" rel="nofollow noopener">https://cwiki.apache.org/confluence/display/CURATOR/TN1</a></p> <p>If you want to sidestep Curator's ZooKeeper handle management you can get the raw ZooKeeper handle and use that, but I don't recommend it.</p> <p>If this doesn't answer your question and you still feel Curator should do something different, let me know and I'll re-open the issue.</p> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@curator.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org