Skip to content
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

fix: leader election should choose highest term #598

Merged
merged 3 commits into from
Jan 24, 2025
Merged

Conversation

mattisonchao
Copy link
Member

Motivation

#579 want to support choosing the highest term as leader. But that PR didn't support it well.

Modification

  • Fix the bug might choose a lower term as leader.
  • Add enhanced test to cover logic.

@merlimat merlimat merged commit bed7f1a into main Jan 24, 2025
7 checks passed
@merlimat merlimat deleted the fix.highest.term branch January 24, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants