-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test case for #306 #314
Test case for #306 #314
Conversation
* Only stop voting thread if the leader elected message successfully installs new leader. * Leader is only installed if the term allows.
@yfei-z, many thanks for coming up with a reproducer! I've added a commit with a solution. |
I have updated the test, check my comments. |
Thanks, @yfei-z. It is reproducing the issue on my side +1 |
* Set a boolean to eventually stop the voting thread. Only interrupt in case of majority loss; * The voting thread can complete execution and then stop once the election is done.
@yfei-z I've added a commit with the changes I had in mind. We only interrupt the voting thread in case the majority is lost. Otherwise, we allow it to stop eventually. |
Seems all good! |
Glad to hear it, many thanks, @yfei-z! |
Here is the test case for the issue that described in #306