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

kvserver: remove ProposeEmptyCommand #87710

Merged
merged 1 commit into from
Nov 12, 2022

Conversation

tbg
Copy link
Member

@tbg tbg commented Sep 9, 2022

We should no longer need it. Also, it introduces the complication
of "empty but ID'ed raft commands", which is annoying. We could
probably change this to propose a truly nil command (mimicking
what raft does internally) but it is better to avoid this problem
altogether.

If there truly is a case in which we need to nudge raft, it likely
also exists outside of the splitDelayHelper, and the sooner we
find out about it the better.

Extracted from #76126.

Epic: None
Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@tbg tbg requested a review from a team September 9, 2022 15:15
@tbg tbg marked this pull request as ready for review September 9, 2022 15:15
@tbg tbg requested a review from a team as a code owner September 9, 2022 15:15
@tbg tbg requested review from erikgrinaker and removed request for a team September 9, 2022 15:15
Copy link
Contributor

@erikgrinaker erikgrinaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's get this in at the start of the cycle.

@tbg
Copy link
Member Author

tbg commented Sep 29, 2022

Going to gate this behind #88985. That PR also picks up a fix that makes sure that the leader's RecentActive is guaranteed true.

We should no longer need it. Also, it introduces the complication
of "empty but ID'ed raft commands", which is annoying. We could
probably change this to propose a truly `nil` command (mimicking
what raft does internally) but it is better to avoid this problem
altogether.

If there truly is a case in which we need to nudge raft, it likely
also exists outside of the `splitDelayHelper`, and the sooner we
find out about it the better.

Extracted from cockroachdb#76126.

Release note: None
@tbg tbg force-pushed the remove-prop-empty-cmd branch from cb6b51a to 28b2350 Compare November 11, 2022 21:44
@tbg
Copy link
Member Author

tbg commented Nov 12, 2022

bors r=erikgrinaker

@craig
Copy link
Contributor

craig bot commented Nov 12, 2022

Build succeeded:

@craig craig bot merged commit ccac3dd into cockroachdb:master Nov 12, 2022
@tbg tbg deleted the remove-prop-empty-cmd branch November 13, 2022 21:36
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.

3 participants