kazoo icon indicating copy to clipboard operation
kazoo copied to clipboard

Zookeeper python client cannot work with go client when using lock

Open yangyadi1993 opened this issue 6 years ago • 0 comments

We are using zookeeper Go client and Python client in different pod in kubernetes but using the same zookeeper infrastructure. Two pods are trying to use a lock with the same path. But the znode created by Python and Go have very different prefix and thus I think zookeeper somehow failed to figure out which is smaller so the lock was not implemented correctly.

As the result, they cannot lock each other and work properly.

_c_38553bd6d1d57f710ae70ddcc3d24715-lock-0000000000 # Go lock
da5719988c244fc793f49ec3aa29b566__lock__0000000003 # Python lock

Is there anything I could do to get Go client working with Python client?

yangyadi1993 avatar Dec 19 '18 16:12 yangyadi1993