Skip to content

kvserver: log lease info when co-operatively transferring lease #147342

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

xuchef
Copy link
Member

@xuchef xuchef commented May 27, 2025

Previously, we wouldn't log the lease details and type when co-operatively transferring leases.

This commit adds this information, which can be useful when observing the lease history over time.

Sample log line:

transferring lease to s2 usage=[...], lease=[repl=(n1,s1):1 seq=1 start=0,0 exp=1748360418.445624000,0 pro=1748360412.445624000,0 acq=Request type=LeaseExpiration]

Resolves: #122186
Epic: CRDB-37522
Release note: None

Previously, we wouldn't log the lease details and type when co-operatively transferring leases.

This commit adds this information, which can be useful when observing the lease history over time.

Sample log line:
```
transferring lease to s2 usage=[...], lease=[repl=(n1,s1):1 seq=1 start=0,0 exp=1748360418.445624000,0 pro=1748360412.445624000,0 acq=Request type=LeaseExpiration]
```

Resolves: cockroachdb#122186
Epic: CRDB-37522
Release note: None
@xuchef xuchef requested a review from a team as a code owner May 27, 2025 16:01
Copy link

blathers-crl bot commented May 27, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xuchef xuchef requested a review from kvoli May 27, 2025 16:01
Copy link
Contributor

@kvoli kvoli 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 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @xuchef)

@xuchef
Copy link
Member Author

xuchef commented May 27, 2025

bors r=kvoli

@craig
Copy link
Contributor

craig bot commented May 27, 2025

@craig craig bot merged commit d6f88c5 into cockroachdb:master May 27, 2025
22 checks passed
@xuchef xuchef deleted the pair-with-austen branch May 27, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kvserver: log lease info when co-operatively transferring lease
3 participants