-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: consider VOTER_INCOMING for lease transfer even if current … #76974
kvserver: consider VOTER_INCOMING for lease transfer even if current … #76974
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @shralex and @tbg)
pkg/kv/kvserver/allocator.go, line 2034 at r1 (raw file):
// excludeReplicasInNeedOfSnapshots filters out the `replicas` that may be in // need of a raft snapshot. If this function is called with the `raftStatus` of // a non-raft leader replica, an empty slice is returned.
Let's also update this comment with the caveat that VOTER_INCOMING
s are always included in the result. Likewise for the comment above replicaMayNeedSnapshot
.
…leaseholder isn't the Raft leader This was previously done as part of cockroachdb#74077 but a check for leader-leaseholder collocation was missed by that patch. This check is removed in this PR, as this case is already covered by replicaMayNeedSnapshot. In future PRs, we will make the error returned by maybeTransferLeaseDuringLeaveJoint retriable by AdminSplit. Release note: None
96535cf
to
cd98815
Compare
bors r+ |
Build failed (retrying...): |
Build failed (retrying...): |
Build succeeded: |
…leaseholder isn't the Raft leader
This was previously done as part of #74077
but a check for leader-leaseholder collocation was missed by that patch. This check is removed
in this PR, as this case is already covered by replicaMayNeedSnapshot.
With this PR, restoreTPCCInc/nodes=10 passed 85 times in a row.
In future PRs, we will make the error returned by maybeTransferLeaseDuringLeaveJoint retriable by
AdminSplit.
Release note: None