curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Harper (JIRA)" <>
Subject [jira] [Created] (CURATOR-478) LeaderLatch accumulates additional watcher handlers
Date Wed, 05 Sep 2018 19:42:00 GMT
Tim Harper created CURATOR-478:

             Summary: LeaderLatch accumulates additional watcher handlers
                 Key: CURATOR-478
             Project: Apache Curator
          Issue Type: Bug
            Reporter: Tim Harper
            Assignee: Jordan Zimmerman

In the event of a connection reconnect, LeaderLatch calls reset():

Ultimately, this results in another call to getChildren(), which calls checkLeadership(),
which registers another getData watch for the ephemeral leader record preceding our new leader
record. However, the watch in place from before reset() is in place, and will trigger yet
_another_ watch in the event that the record it is watching gets deleted.

As such, the number of pending watchers (at least client side) will continue to increase each
time the connection fails over.

This message was sent by Atlassian JIRA

View raw message