Re: python client structure

2010-04-21 Thread Henry Robinson
Hi Travis - Great to see zkpython getting used. I'm glad you're finding the problems with the documentation - please do file JIRAs with anything you'd like to see improved (and I know there's a lot to improve with zkpython). You are using the asynchronous form of get_children. This means that

Client reconnection after a connection loss

2010-04-21 Thread Julien Vey
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

Re: Client reconnection after a connection loss

2010-04-21 Thread Patrick Hunt
Hi Julien, take a look at the FAQ for some background: http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A3 Basically when your client connects to the server it provides a timeout value. If the server doesn't hear from your client within this timeout period (we do heartbeating for you in a

Re: python client structure

2010-04-21 Thread Travis Crawford
On Wed, Apr 21, 2010 at 12:26 AM, Henry Robinson he...@cloudera.com wrote: Hi Travis - Great to see zkpython getting used. I'm glad you're finding the problems with the documentation - please do file JIRAs with anything you'd like to see improved (and I know there's a lot to improve with

Re: python client structure

2010-04-21 Thread Henry Robinson
The best place for help I was able to find is ``help(zookeeper)`` -- is there somewhere else I should be looking instead? It looks like you wrapped the c client, so I also have been looking in zookeeper.h and trying to infer what's going on. zookeeper.h is helpful because, as you say, the