Closed rhdxmr closed 5 years ago
@rhdxmr that's great but it would be nice to have some tests for this behavior, can you do that?
@cybergrind OK. I will try :^)
Hello @cybergrind :smiley: I added some test code relevant with this pr. Can you review my code?
hi @rhdxmr ! everything looks great now, thank you for your fascinating work and time! Release this in 0.17.0
Everytime lock is acquired by calling this statement "async with zk.recipes.Lock(path).acquire():", a task is created waiting for zookeeper session loss. However that task is still pending after the lock is released. If a daemon program keeps zookeeper session over a month while it is running, there exist tons of pending tasks and it leads to resource leakage problem.