Using zkpython with ZK 3.2.1 release:
import zookeeper as z
zh = z.init(...)
z.state(zh) # returns 3 == z.CONNECTED_STATE
# kill standalone ZK server
z.state(zh) # returns 0 == ???
The problem is that 0 is not a state defined by zookeeper.[ch]. I'm not
sure whether 0 should've been
You're right, 0 should be something like INITIALIZING_STATE but it's
not in zookeeper.h
zookeeper_init(...) docs:
* This method creates a new handle and a zookeeper session that
corresponds
* to that handle. Session establishment is asynchronous, meaning that the
* session should not be
Message-
From: Patrick Hunt [mailto:ph...@apache.org]
Sent: Tuesday, October 13, 2009 5:03 PM
To: zookeeper-user@hadoop.apache.org
Subject: Re: C client (via zkpython) returns unknown state
You're right, 0 should be something like INITIALIZING_STATE but it's
not in zookeeper.h
zookeeper_init
and Java's KeeperState.
-Original Message-
From: Patrick Hunt [mailto:ph...@apache.org]
Sent: Tuesday, October 13, 2009 5:03 PM
To: zookeeper-user@hadoop.apache.org
Subject: Re: C client (via zkpython) returns unknown state
You're right, 0 should be something like INITIALIZING_STATE but it's