This is what I have going:
I have a bunch of 200 nodes come up and create an ephemeral entry under a
znode names /Membership. When nodes are detected dead the node associated
with the dead node under /Membership is deleted and watch delivered to the
rest of the members. Now there are
Would my watcher get invoked on this ConnectionLoss event? If so I am
thinking I will check for KeeperState.Disconnected and reset my state. Is my
understanding correct? Please advice.
Thanks
Avinash
On Tue, Oct 12, 2010 at 10:45 AM, Benjamin Reed br...@yahoo-inc.com wrote:
ZooKeeper
Yes. You should get that event.
You should also debug why you are getting disconnected in the first place.
This is often a symptom of something really bad that is happening on your
client side such as very long GC's. If these are unavoidable, then you need
to adjust the timeouts with ZK to