[CURATOR-654] DistributedBarrier watcher leak
The DistributedBarrier adds a zookeeper exists watcher in the waitOnBarrier() method. It appears as though the watcher is never removed. In a system where DistributedBarriers are used heavily this eventually results in the system running out of memory.
Originally reported by sscott, imported from: DistributedBarrier watcher leak
- status: Open
- priority: Major
- resolution: Unresolved
- imported: 2025-01-21
Hi Stuart Scott! Thanks for your reporting. You can directly send a pull request against the GitHub repository https://github.com/apache/curator. And please add a test case to the patch.
Hi Zili,
I have added tests and created a pull request.
https://github.com/apache/curator/pull/435
Stuart.
Thank you Stuart Scott! I may review this patch in this week. Sorry that I'm a bit busy on my $dayjob now ![]()