Hi Martin, We have actually found a bug that might be the cause of your
problem. As we are now in the process of migrating to Apache, the issue is on
JIRA:
https://issues.apache.org/jira/browse/ZOOKEEPER-57
Please feel free to add comments.
Thanks,
-Flavio
----- Original Message ----
From: Martin Schaaf <[EMAIL PROTECTED]>
To: zookeeper-user@lists.sourceforge.net
Sent: Friday, June 27, 2008 4:07:00 PM
Subject: Re: [Zookeeper-user] Lost connection
Am 26.06.2008 um 15:09 schrieb Flavio Junqueira:
> It looks like your client session is expiring. You can try
> increasing the session timeout value when creating the ZooKeeper
> object on your client. In any case, I would say it is good practice
> to have code on your client to deal with session expirations. Upon a
> session expiration, there is a call to your Watcher.process
> implementation indicating that it has expired.
It happens again now I found the follwoing in one of the server log
files:
Failed to update data in zookeeper net.sf.katta.util.KattaException:
unable to check path: /katta/nodes/1
at net.sf.katta.zk.ZKClient.exists(ZKClient.java:301)
at net.sf.katta.node.Node$StatusUpdater.run(Node.java:730)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: com.yahoo.zookeeper.KeeperException: KeeperErrorCode =
ConnectionLoss
at com.yahoo.zookeeper.ZooKeeper.exists(ZooKeeper.java:357)
at net.sf.katta.zk.ZKClient.exists(ZKClient.java:299)
... 3 more
Failed to update data in zookeeper net.sf.katta.util.KattaException:
unable to check path: /katta/nodes/1
at net.sf.katta.zk.ZKClient.exists(ZKClient.java:301)
at net.sf.katta.node.Node$StatusUpdater.run(Node.java:730)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: com.yahoo.zookeeper.KeeperException: KeeperErrorCode =
SessionExpired
at com.yahoo.zookeeper.ZooKeeper.exists(ZooKeeper.java:357)
at net.sf.katta.zk.ZKClient.exists(ZKClient.java:299)
... 3 more
The session is expired and I try now to catch this state with
event.getState() == Watcher.Event.KeeperStateExpired. Is there an
example how to renew the session or do I have to create a new
ZooKeeper object?
Bye,
martin.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Zookeeper-user mailing list
Zookeeper-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zookeeper-user
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Zookeeper-user mailing list
Zookeeper-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zookeeper-user