Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Zookeeper go client cannot work with python client when using lock #203

Open
yangyadi1993 opened this issue Dec 19, 2018 · 2 comments
Open

Comments

@yangyadi1993
Copy link

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?

@MrWinstead
Copy link

@yangyadi1993, can you confirm you're using something like Kazoo?

@MrWinstead
Copy link

@yangyadi1993, would you mind trying the enhancement/203 branch? The lock name builder should be what you're looking for.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants