hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Wong" <sw...@netflix.com>
Subject C client (via zkpython) returns unknown state
Date Tue, 13 Oct 2009 23:53:57 GMT
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 defined or z.state should've returned
something else.

 

Steven

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message