David Kesler created CURATOR-187:
------------------------------------
Summary: ChildReaper does not respect built in leader election
Key: CURATOR-187
URL: https://issues.apache.org/jira/browse/CURATOR-187
Project: Apache Curator
Issue Type: Bug
Reporter: David Kesler
Assignee: Jordan Zimmerman
ChildReaper has built in leader election, but ChildReaper itself doesn't
actually respect it. It merely passes it along to the Reaper. This means that
the child reaper will continue to watch its path and add nodes that need to be
reaped into the reaper's queue, despite the reaper (potentially) not being
active.
This has two negative effects:
1) It creates a memory leak as the child reaper will continuously add paths to
the reaper's list of activePaths without the reaper having any mechanism for
removing them from its list.
2) It creates a backlog of paths so that if the reaper ever does become leader
it needs to churn through all the nodes that have been added to its queue since
it started (or lost leadership). In a high enough volume scenario, this can
result in a substantial delay before the reaper begins successfully processing
paths that still exist and need to be reaped.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)