Skip to content

Conversation

@stevendanna
Copy link
Collaborator

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 #159959
Release note: None

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
@stevendanna stevendanna requested a review from arulajmani January 7, 2026 10:14
@stevendanna stevendanna requested a review from a team as a code owner January 7, 2026 10:14
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

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

:lgtm:

@arulajmani reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @stevendanna).

@arulajmani
Copy link
Collaborator

Should we backport this as well?

@stevendanna stevendanna added backport-26.1.x Flags PRs that need to be backported to 26.1 backport-25.3.x Flags PRs that need to be backported to 25.3 backport-25.4.x Flags PRs that need to be backported to 25.4 labels Jan 9, 2026
@stevendanna
Copy link
Collaborator Author

bors r+

Added the backport label for the last few releases.

@craig
Copy link
Contributor

craig bot commented Jan 9, 2026

@craig craig bot merged commit cae2512 into cockroachdb:master Jan 9, 2026
25 checks passed
@blathers-crl
Copy link

blathers-crl bot commented Jan 9, 2026

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-25.3.x Flags PRs that need to be backported to 25.3 backport-25.4.x Flags PRs that need to be backported to 25.4 backport-26.1.x Flags PRs that need to be backported to 26.1 target-release-26.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kv/kvserver: TestStoreRangeLease failed

3 participants