-
Notifications
You must be signed in to change notification settings - Fork 4.1k
kvserver: deflake TestStoreRangeLease #160606
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
Conversation
This test failed with
client_lease_test.go:124: expected lease type LeaseLeader; got
repl=(n1,s1):1 seq=1 start=0,0 type=LeaseExpiration
exp=1766221308.352665601,0 pro=1766221302.352665601,0 acq=Request for
key "c"
It seems what is happening here is there is a period after the split on
the RHS where the range does not yet know the leader and thus the lease
acquisition attempt results in a expiration-based lease.
Here, I simply wait for the raft state to list any leader. This resolved
my local reproduction.
Fixes cockroachdb#159959
Release note: None
arulajmani
left a comment
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.
@arulajmani reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @stevendanna).
|
Should we backport this as well? |
|
bors r+ Added the backport label for the last few releases. |
|
Build succeeded: |
|
Based on the specified backports for this PR, I applied new labels to the following linked issue(s). Please adjust the labels as needed to match the branches actually affected by the issue(s), including adding any known older branches. Issue #159959: branch-release-25.3, branch-release-25.4. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
This test failed with
It seems what is happening here is there is a period after the split on the RHS where the range does not yet know the leader and thus the lease acquisition attempt results in a expiration-based lease.
Here, I simply wait for the raft state to list any leader. This resolved my local reproduction.
Fixes #159959
Release note: None