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

kvnemesis: add lease transfers #59008

Merged

Conversation

nvanbenschoten
Copy link
Member

@nvanbenschoten nvanbenschoten commented Jan 14, 2021

This commit adds lease transfers to KV nemesis. This will be useful in validating that I don't mess anything up when addressing #57688 or when performing the precursor refactor to pull lease checks below latching.

I stressed this for 50,000 iterations on a 20 node roachprod cluster without failure, so it looks like lease transfers aren't already broken!

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvanbenschoten nvanbenschoten force-pushed the nvanbenschoten/kvnemesisLeaseTransfer branch from 1b75ced to ef4c1bb Compare January 14, 2021 19:22
This commit adds lease transfers to KV nemesis. This will be useful in
validating that I don't mess anything up when addressing cockroachdb#57688 or when
performing the precursor refactor to pull lease checks below latching.

I stressed this for 50,000 iterations on a 20 node roachprod cluster
without failure, so it looks like lease transfers aren't already broken!
@nvanbenschoten nvanbenschoten force-pushed the nvanbenschoten/kvnemesisLeaseTransfer branch from ef4c1bb to c575d5c Compare January 14, 2021 21:22
Copy link
Contributor

@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.

Very nice! :lgtm:

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


pkg/kv/kvnemesis/generator.go, line 123 at r1 (raw file):

// ChangeReplicasConfig configures the relative probability of generating a
// ChangeReplicas operation.
type ChangeReplicasConfig struct {

Would you mind adding a TODO here about supporting non-voter addition/removal (and assigning to me)?

Copy link
Member Author

@nvanbenschoten nvanbenschoten 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! 1 of 0 LGTMs obtained (waiting on @aayushshah15)


pkg/kv/kvnemesis/generator.go, line 123 at r1 (raw file):

Previously, aayushshah15 (Aayush Shah) wrote…

Would you mind adding a TODO here about supporting non-voter addition/removal (and assigning to me)?

I opened #59060 and #59061 so we can track these in Github. These will both be great ways to extend our randomized testing coverage over new functionality. I'll also be doing #59062 in this release cycle.

@craig
Copy link
Contributor

craig bot commented Jan 15, 2021

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Jan 15, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jan 15, 2021

Build succeeded:

@craig craig bot merged commit ff1442b into cockroachdb:master Jan 15, 2021
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/kvnemesisLeaseTransfer branch January 16, 2021 17:40
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