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

kvserver: bring TestStoreRangeLease to a leader lease world #136229

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

arulajmani
Copy link
Collaborator

This patch renames what was previously TestStoreRangeLease by adding a EpochLease suffix to it. Then, we rewrite TestStoreRangeLease to use leader leases instead.

References #133763

Release note: None

@arulajmani arulajmani requested a review from a team as a code owner November 26, 2024 18:02
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@iskettaneh iskettaneh left a comment

Choose a reason for hiding this comment

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

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


pkg/kv/kvserver/client_lease_test.go line 64 at r1 (raw file):

	// we can remove this. Leader leases require us to reject lease requests
	// on replicas that are not the leader, as otherwise we'll
	kvserver.RejectLeaseOnLeaderUnknown.Override(ctx, &st.SV, true)

What happens if this was removed?

This patch renames  what was previously TestStoreRangeLease by adding
a EpochLease suffix to it. Then, we rewrite TestStoreRangeLease to use
leader leases instead.

References cockroachdb#133763

Release note: None
@arulajmani arulajmani force-pushed the ll-TestStoreRangeLease branch from 2a4b6f3 to 28ba34c Compare November 28, 2024 15:30
Copy link
Collaborator Author

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

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


pkg/kv/kvserver/client_lease_test.go line 64 at r1 (raw file):

Previously, iskettaneh wrote…

What happens if this was removed?

It's not needed. Detritus from trying to stabilize this.

Copy link
Contributor

@iskettaneh iskettaneh left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@arulajmani
Copy link
Collaborator Author

Thanks!

bors r+

@craig craig bot merged commit 0df3dc6 into cockroachdb:master Nov 28, 2024
22 of 23 checks passed
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