kezhuw commented on PR #446: URL: https://github.com/apache/curator/pull/446#issuecomment-1459600205
@eolivelli @tisonkun Would you mind take another look ? I reworked the fix: 1. Fix implementation of `interruptLeadership` to interrupt only if `hasLeadership`. 2. Use `ourThread` to cancel election, this avoids immature future task cancellation which break election loops. With help from synchronized `taskStarted`, `taskDone`, we can certainly know next election after `cancelElection` will see cancellation cause(e.g. session expired). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
