hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Vey <Julien....@bull.net>
Subject Client reconnection after a connection loss
Date Wed, 21 Apr 2010 08:44:41 GMT
Hi all,

I'm currently working with ZooKeeper in CXF D-OSGI and i'm facing a 
problem that would require your help.

When a client is connected to the ZooKeeper server, and the connection 
is lost, it throws a ConnectionLossException.
The problem is when the connection is back, the client doesn't reconnect 
itself. I can see the following trace on the server

2010-04-20 17:44:21,526 - INFO  [NIOServerCxn.Factory:>$Factory@251] - Accepted socket 
connection from /
2010-04-20 17:44:21,526 - INFO  [NIOServerCxn.Factory:] - Client attempting to renew 
session0x1281ba54e900005 at /
2010-04-20 17:44:21,527 - INFO  [NIOServerCxn.Factory:] - Invalid session 
0x1281ba54e900005 for client /, probably expired
2010-04-20 17:44:21,527 - INFO  [NIOServerCxn.Factory:] - Closed socket connection for 
client / which had sessionid 0x1281ba54e900005

The client tries to reconnect with an expired session id.
Is it possible to configure zookeeper in order that it accepts this 
connection by recreating a new session, or maybe something else that 
would make the reconnection works ?

Thanks in advance for your help


View raw message