Github user Randgalt commented on the pull request:
https://github.com/apache/curator/pull/17#issuecomment-50798327
I need to spend more time on this, but I'm suspecting that the refresh*()
and was*() methods of TreeNode need to be synchronized. These methods can be
called from the watcher/async callbacks as well as Curator's connection state
listener callback. The watcher/async are from a single thread in ZK, but
Curator's connection state listener callback is a different thread. Thus, these
methods could be called at the same time from two threads (via
wasReconnected()).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---