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

kv: don't try to reject lease transfer when flushing proposal buffer #83520

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

nvanbenschoten
Copy link
Member

Fixes #83498.
Fixes #83402.
Fixes #83308.

This was fallout from #82758.

This commit adds logic to propBuf.maybeRejectUnsafeProposalLocked to avoid
trying to reject proposals based on the state of the raft group when the group
is not provided (e.g. when flushing the buffer). We already had this logic for
RequestLease (indirectly), but did not for TransferLease.

Fixes cockroachdb#83498.
Fixes cockroachdb#83402.
Fixes cockroachdb#83308.

This was fallout from cockroachdb#82758.

This commit adds logic to `propBuf.maybeRejectUnsafeProposalLocked` to avoid
trying to reject proposals based on the state of the raft group when the group
is not provided (e.g. when flushing the buffer). We already had this logic for
`RequestLease` (indirectly), but did not for `TransferLease`.
@nvanbenschoten nvanbenschoten requested a review from a team as a code owner June 28, 2022 17:28
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andreimatei
Copy link
Contributor

LGTM

@nvanbenschoten
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 28, 2022

Build succeeded:

@craig craig bot merged commit 5541cf8 into cockroachdb:master Jun 28, 2022
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/fix83498 branch June 30, 2022 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants