Skip to content

kvserver: address assorted comments from previous refactor of TransferLeaseTarget()#81403

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
aayushshah15:20220517_fixNathansCommentsOnDrainingScatterBug
May 25, 2022
Merged

kvserver: address assorted comments from previous refactor of TransferLeaseTarget()#81403
craig[bot] merged 1 commit intocockroachdb:masterfrom
aayushshah15:20220517_fixNathansCommentsOnDrainingScatterBug

Conversation

@aayushshah15
Copy link
Copy Markdown
Contributor

This commit addresses miscelleneous review comments from #80834.

Release note: None

@aayushshah15 aayushshah15 requested a review from nvb May 17, 2022 19:39
@aayushshah15 aayushshah15 requested a review from a team as a code owner May 17, 2022 19:39
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@aayushshah15 aayushshah15 force-pushed the 20220517_fixNathansCommentsOnDrainingScatterBug branch from a5ffb0d to 7c47f92 Compare May 18, 2022 16:36
Copy link
Copy Markdown
Contributor

@nvb nvb left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @aayushshah15)


pkg/kv/kvserver/allocator/allocatorimpl/allocator.go line 1498 at r1 (raw file):

	candidates := make([]roachpb.ReplicaDescriptor, 0, len(existing))
	for i := range existing {
		if !existing[i].IsVoterNewConfig() {

Should we call roachpb.CheckCanReceiveLease directly?

…erLeaseTarget()`

This commit addresses miscelleneous review comments from cockroachdb#80834.

Release note: None
@aayushshah15 aayushshah15 force-pushed the 20220517_fixNathansCommentsOnDrainingScatterBug branch from 7c47f92 to 3a28a7f Compare May 25, 2022 18:26
Copy link
Copy Markdown
Contributor Author

@aayushshah15 aayushshah15 left a comment

Choose a reason for hiding this comment

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

TFTR

bors r+

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @nvanbenschoten)


pkg/kv/kvserver/allocator/allocatorimpl/allocator.go line 1498 at r1 (raw file):

Previously, nvanbenschoten (Nathan VanBenschoten) wrote…

Should we call roachpb.CheckCanReceiveLease directly?

Done.

@craig craig bot merged commit 5b0453e into cockroachdb:master May 25, 2022
@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 25, 2022

Build succeeded:

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