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

raftexample: apply conf change entries before send message #15450

Closed

Conversation

KumKeeHyun
Copy link

Update raftexample to apply conf changes before send raft.Ready.Messages. Candidate or follower needs to wait for all pending conf changes. Otherwise there might be incorrectly count votes.
This PR introduces the fix from #7595 and pr num 7706.

Same logic as etcdserver/raft.go at main
Since conf changes are applied directly in publishEntries, it doesn't need to wait for the applyDoneC.

Update raftexample to apply conf changes before send raft.Ready.Messages.
Candidate or follower needs to wait for all pending conf changes.
Otherwise there might be incorrectly count votes.
This PR introduces the fix from etcd-io#7595 and pr num 7706.

Signed-off-by: Kee-Hyun Kum <[email protected]>
Signed-off-by: KumKeeHyun <[email protected]>
@KumKeeHyun KumKeeHyun force-pushed the raftexample-conf-before-send branch from a367ea9 to 54b8b2b Compare March 13, 2023 06:56
@serathius
Copy link
Member

cc @tbg

@ahrtr
Copy link
Member

ahrtr commented Mar 14, 2023

FYI. #15471 (comment)

@ahrtr
Copy link
Member

ahrtr commented Mar 14, 2023

Thanks @KumKeeHyun anyway.

@KumKeeHyun
Copy link
Author

Thanks for reply :)

@KumKeeHyun KumKeeHyun closed this Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants