cockroachdb / cockroachdb/cockroach
kvserver: log failed attempts to satisfy lease preferences
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
From [an escalation](https://github.com/cockroachlabs/support/issues/3382#issuecomment-3134756997).
If lease preferences can't be met for extended periods of time, it makes sense to log at least some failing attempts to fix them, for RCA purposes.
(If the problem is persistent, we can diagnose the issue by proactively running the replica through the lease queue instead).
Jira issue: CRDB-53027
Epic CRDB-54646
Contributor guide
Research direction
No file or test is named in the issue. Start by tracing how lease preferences are checked and how replicas enter the lease queue; determine where extended failed attempts can be observed. Done means persistent inability to satisfy lease preferences produces useful, limited logs for RCA without logging every attempt.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- distributed-systems, observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100