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

Force pipelined rpcs for noop command. #506

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Conversation

kjnilsson
Copy link
Contributor

Instead of the candidate sending a set of empty rpcs before entering leader state, ensure rpcs are sent for all followers by forcing pipelined rpcs to be generated when the command is a noop command.

This fixes potential issues with leader election timeliness.

@kjnilsson kjnilsson force-pushed the candidate-rpc-fix branch 3 times, most recently from d671a73 to 979dbe4 Compare February 3, 2025 12:54
@kjnilsson kjnilsson marked this pull request as ready for review February 3, 2025 14:23
@kjnilsson kjnilsson requested a review from mkuratczyk February 3, 2025 14:25
Instead of the candidate sending a set of empty rpcs before entering
leader state, ensure rpcs are sent for all followers by forcing
pipelined rpcs to be generated when the command is a noop command.

This fixes potential issues with leader election timeliness.

Some formatting fixes.
@kjnilsson kjnilsson merged commit 2926d39 into main Feb 3, 2025
3 checks passed
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