Skip to content

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

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/fix83498
Jun 28, 2022
Merged

kv: don't try to reject lease transfer when flushing proposal buffer#83520
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/fix83498

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Jun 28, 2022

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`.
@nvb nvb requested a review from andreimatei June 28, 2022 17:28
@nvb nvb requested a review from a team as a code owner June 28, 2022 17:28
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@andreimatei
Copy link
Copy Markdown
Contributor

LGTM

@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Jun 28, 2022

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 28, 2022

Build succeeded:

@craig craig bot merged commit 5541cf8 into cockroachdb:master Jun 28, 2022
@nvb nvb 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