KazooClient.create raises AttributeError #60

nekto0n opened this Issue Mar 15, 2013 · 2 comments

3 participants


Came across this trace with kazoo-1.0b and gevent handler:

   File "/usr/lib/python2.7/site-packages/myservice/zk.py", line 257, in set_status
     self.client.create(path, data, ephemeral=True)
   File "/usr/lib/python2.7/site-packages/kazoo/client.py", line 660, in create
     return self.unchroot(realpath)
   File "/usr/lib/python2.7/site-packages/kazoo/client.py", line 540, in unchroot
     if path.startswith(self.chroot):
 AttributeError: 'NoneType' object has no attribute 'startswith'

And then:

[kazoo.protocol.connection] Connection dropped: socket connection broken

Seems like write failed and async_result with Create request returned None. Can't yet figure out how can this happen.

Python Zookeeper High-Level Libraries member

Has this happened with 1.1?


Haven't seen this issue for a long time. I think this can be closed

@hannosch hannosch closed this Jul 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment