Hi! I just started using Zookeeper so excuse my dumb question :)

I'm developing an zookeeper client that allows only one instance of an 
application to run at a time. It is not so good if two applications run at the 
same time.
As a precaution, I made my client shut down the application whenever it 
receives CONNECTING_STATE (for instance, if I can't reach the zookeeper 
ensamble due to a cable cut, I won't receive any other notification so I just 
shut down as a precaution).

So my question would be: if everything runs smoothly, will I ever receive a 
CONNECTING_STATE trigger? For instance, it would be bad if there is a 
CONNECTING_STATE that sometimes precedes CONNECTED_STATE even if everything is 
connected and within timeouts.

Hope I made sense,

Reply via email to