Open MattGhafouri opened 1 year ago
Same issue here running zookeeper in a docker container, the alpha release seems to have fixed the issue.
The Vostok.ZooKeeper.Client package was last published in 2022 and has a decent number of downloads. Has anyone tried it?
For context, while I can move forward with my patched fork of ZooKeeperNetEx, I'd love to find a higher-quality alternative to rely on going forward since I'm not in position to maintain a ZooKeeper client.
That used ZooKeeperEx under the hood too :(
@madelson Where I work, we have a custom ZK build which fixes this and also takes in some of the code you use to manage the ZooKeeper instance, given our potential reliance on ZK - it might be worth us publishing it; Ill have a chat internally an see if thats possible, then you could rely on that.
I've implemented a lock with the Zookeeper with this configuration :
There are several worker services inside the application, each of them working with a different lock key. periodically it tries to accuqire the lock and do some processes. It seems they are working without problem, but after a while, I get this exception
Locking failed.Exception of type 'org.apache.zookeeper.KeeperException+ConnectionLossException' was thrown. org.apache.zookeeper.KeeperException+ConnectionLossException: Exception of type 'org.apache.zookeeper.KeeperException+ConnectionLossException' was thrown.
It seems the lock cannot be acquired because it has not been released, although there is no concurrent request for the lock key.
The LockService code in dotnet :
I appreciate any suggestion