curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alvaro Gareppe <>
Subject Re: getData Watcher and ConnectionLossException
Date Tue, 01 Dec 2015 20:30:28 GMT
Yes.. I know that the case is a little confusing.. I'm trying to reproduce
in a simple example.. When I have the code I'll post it in this thread

Thank you

On Tue, Dec 1, 2015 at 4:51 PM, Jordan Zimmerman <
> wrote:

> I don’t totally follow what you’re saying. But, if you’re connection to ZK
> lapses past the session timeout, you will lose all your ephemeral nodes as
> well as any watchers. I’m not sure if this helps. You might try the ZK
> mailing list too.
> On Dec 1, 2015, at 1:21 PM, Alvaro Gareppe <> wrote:
> This is my case
> I  open a connection
> set a connection listener
> kill the zookeeper connection
> try to do a node delete (or whatever)
> If I do that and the connection gets restablished as expected.. I got the
> SUSPENDED state in linstener and immediately after the RECONNECTED one and
> delete succeds
> If I register a deleteWatcher for any node before killing the connection
> all woks the same way BUT if a register a dataWatcher then I get a lot of
> ConnectionsLossExceptions in log and after a while i get the CONECTED event
> and a loose every ephemeral nodes in the process.. besides that the
> connection is established immediately (cause I see it in JMX tree) so after
> this I can do the delete of the node..
> There is a way to have the same reconnection process with getData watcher
> and exists watcher ?
> --
> Ing. Alvaro Gareppe

Ing. Alvaro Gareppe

View raw message