Skip to content

refactor: move election leader logic into a separate struct#793

Merged
merlimat merged 6 commits intomainfrom
refactor/shard-election
Oct 27, 2025
Merged

refactor: move election leader logic into a separate struct#793
merlimat merged 6 commits intomainfrom
refactor/shard-election

Conversation

@mattisonchao
Copy link
Copy Markdown
Member

@mattisonchao mattisonchao commented Oct 26, 2025

Motivation

fixes: #845

Moving all the election-related logic into a specific struct, and then we can control all the states' ownership easily. For example, gracefully stop the current election and move to the next round.

@mattisonchao mattisonchao changed the title refactor: move election logic into shard election refactor: move election logic into seperate struct Oct 26, 2025
@mattisonchao mattisonchao changed the title refactor: move election logic into seperate struct refactor: move election leader logic into a separate struct Oct 26, 2025
@merlimat merlimat merged commit a8180bd into main Oct 27, 2025
8 checks passed
@merlimat merlimat deleted the refactor/shard-election branch October 27, 2025 16:22
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.

bug: data lost when expanding nodes from 3 to 6

2 participants