Github user egor-ryashin commented on the issue:
https://github.com/apache/curator/pull/243
@Randgalt I've actually seen several leaders working several minutes till I
restart them.
My guess, right now, that can happen when the leader has lost connection
for a spell. For example, for children:
A
B
here B watches A, while A doesn't watch anything, I guess. If A got a
connectivity issue, B becomes a leader and set no watches, then A get through
and becomes the leader again, due to the sorting rule, while B doesn't receive
any notification about it.
Haven't had the time to prove it yet though.
---