jira-importer commented on issue #583: URL: https://github.com/apache/curator/issues/583#issuecomment-2604700196
<i><a href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=djones">djones</a>:</i> <p>I came across this bug because I've run into it in production. Perhaps I have a weird use case, but what I'm essentially doing is running an election on a fixed schedule (say every 1 hour). When its work is finished, the leader signals for shutdown and then exits. There's a race condition between another thread trying to become the leader and handling the shutdown event that can result in the deadlock described here for future elections. This wouldn't be an issue if leaderSelector#close was completely reliable.</p> <p>I can probably work around this bug, but it's definitely an issue for repeated elections.</p> -- 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: dev-unsubscr...@curator.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org