hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Reed <br...@yahoo-inc.com>
Subject RE: Can ConnectionLossException be thrown when using multiple hosts?
Date Thu, 08 Jan 2009 19:14:42 GMT
just to clarify: you also get ConnectionLossException from syncronous requests if the request
cannot be sent or no response is received.

ben

-----Original Message-----
From: Patrick Hunt [mailto:phunt@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 
completed)

Patrick

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
> 

Mime
View raw message