curator icon indicating copy to clipboard operation
curator copied to clipboard

[CURATOR-654] DistributedBarrier watcher leak

Open jira-importer opened this issue 3 years ago • 4 comments

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

jira-importer avatar Oct 05 '22 05:10 jira-importer

tison:

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.

jira-importer avatar Oct 05 '22 05:10 jira-importer

JIRAUSER296525:

Hi Zili,

I have added tests and created a pull request.
https://github.com/apache/curator/pull/435

Stuart.

jira-importer avatar Oct 06 '22 06:10 jira-importer

tison:

Thank you Stuart Scott! I may review this patch in this week. Sorry that I'm a bit busy on my $dayjob now

jira-importer avatar Oct 10 '22 02:10 jira-importer