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

Don't reset election_elapsed if request vote will be rejected. #14

Open
BusyJay opened this issue Jan 16, 2018 · 1 comment
Open

Don't reset election_elapsed if request vote will be rejected. #14

BusyJay opened this issue Jan 16, 2018 · 1 comment
Labels
Enhancement An improvement to existing code. Optimization Performance related optimizations. Request for Comment A proposal to be considered. Analogous to an RFC in TiKV/Rust.

Comments

@BusyJay
Copy link
Member

BusyJay commented Jan 16, 2018

For now a candidate will always reset election_elapsed when receiving a message with higher term. However if the vote is about to be rejected, reset elapsed will make campaign postponed at lease an election timeout.

@wentaoxu
Copy link

wentaoxu commented Jan 24, 2018

I think maybe this will make the situation that two nodes start to elect with the same term happen more frequently, and this will make the course of election even longer.

@Hoverbear Hoverbear added the Optimization Performance related optimizations. label Aug 24, 2018
@BusyJay BusyJay added the Request for Comment A proposal to be considered. Analogous to an RFC in TiKV/Rust. label Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement An improvement to existing code. Optimization Performance related optimizations. Request for Comment A proposal to be considered. Analogous to an RFC in TiKV/Rust.
Projects
None yet
Development

No branches or pull requests

3 participants