Re: [Zookeeper-user] Lost connection

2008-06-27 Thread Martin Schaaf

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


[Zookeeper-user] Lost connection

2008-06-26 Thread Martin Schaaf
Hi,

After  some days on running our application that uses zookeeper over  
10 servers we get connection loss exception by writing into zookeeper.

Caused by: com.yahoo.zookeeper.KeeperException: KeeperErrorCode =  
ConnectionLoss
at com.yahoo.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:634)
at net.sf.katta.zk.ZKClient.getChildren(ZKClient.java:321)
... 3 more

We use zookeeper 2.2.0. We can reach the servers all the time. Is this  
known and how can we find out what the cause is?
Thanks in advance for every answer.

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


Re: [Zookeeper-user] Lost connection

2008-06-26 Thread Flavio Junqueira
Hi Martin, Have you observed any session expiration in your logs? What is the 
value of tickTime you are using?

-Flavio


- Original Message 
From: Martin Schaaf [EMAIL PROTECTED]
To: zookeeper-user@lists.sourceforge.net
Sent: Thursday, June 26, 2008 12:05:21 PM
Subject: [Zookeeper-user] Lost connection

Hi,

After  some days on running our application that uses zookeeper over  
10 servers we get connection loss exception by writing into zookeeper.

Caused by: com.yahoo.zookeeper.KeeperException: KeeperErrorCode =  
ConnectionLoss
at com.yahoo.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:634)
at net.sf.katta.zk.ZKClient.getChildren(ZKClient.java:321)
... 3 more

We use zookeeper 2.2.0. We can reach the servers all the time. Is this  
known and how can we find out what the cause is?
Thanks in advance for every answer.

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


Re: [Zookeeper-user] Lost connection

2008-06-26 Thread Martin Schaaf

Am 26.06.2008 um 12:53 schrieb Flavio Junqueira:

 Hi Martin, Have you observed any session expiration in your logs?  
 What is the value of tickTime you are using?


tickTime is 2000

I found this in the logs

2008-06-25 07:26:42,003 WARN  
com.yahoo.zookeeper.server.PrepRequestProcessor: Processed session  
termination request for id: 11aba706af60019
2008-06-25 07:50:42,161 WARN  
com.yahoo.zookeeper.server.ZooKeeperServer: Closing:
java.io.IOException: TIMED OUT
 at com.yahoo.zookeeper.ClientCnxn 
$SendThread.run(ClientCnxn.java:666)
2008-06-25 07:50:42,723 WARN  
com.yahoo.zookeeper.server.ZooKeeperServer: Closing:
java.io.IOException: TIMED OUTat com.yahoo.zookeeper.ClientCnxn 
$SendThread.run(ClientCnxn.java:666)

and very often this

2008-06-25 07:50:43,970 WARN com.yahoo.zookeeper.server.NIOServerCnxn:  
Connected to /10.201.8.204:50229 lastZxid 6
2008-06-25 07:50:43,970 WARN com.yahoo.zookeeper.server.NIOServerCnxn:  
Finished init of 11aba706af6: true
2008-06-25 07:50:43,970 WARN com.yahoo.zookeeper.server.NIOServerCnxn:  
Renewing session 11aba706af6

Bye,
Martin Schaaf

-
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