just to clarify: you also get ConnectionLossException from syncronous requests 
if the request cannot be sent or no response is received.


-----Original Message-----
From: Patrick Hunt [mailto:ph...@apache.org] 
Sent: Wednesday, January 07, 2009 10:16 AM
To: zookeeper-user@hadoop.apache.org
Subject: Re: Can ConnectionLossException be thrown when using multiple hosts?

There are basically 2 cases where you can see connectionloss:

1) you call an operation on a session that is no longer alive

2) you are disconnected from a server when there are pending async 
operations to that server (you made an async request which has not yet 


Kevin Burton wrote:
> Can this be thrown when using multiple servers as long as > 1 of them is
> online?
> Trying to figure out of I should try some type of reconnect if a single
> machine fails instead of failing altogether.
> Kevin

Reply via email to