kvserver: eagerly enqueue less preferred leases for transfer #116081
Labels
A-kv-distribution
Relating to rebalancing and leasing.
branch-release-24.1
Used to mark GA and release blockers, technical advisories, and bugs for 24.1
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
O-support
Would prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docs
P-2
Issues/test failures with a fix SLA of 3 months
release-blocker
Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.
T-kv
KV Team
Is your feature request related to a problem? Please describe.
In #107507 we began enqueueing ranges when acquiring a lease violating its configured preferences. This work didn't extend to less preferred preferences e.g.
cockroach/pkg/kv/kvserver/replica_proposal.go
Lines 549 to 557 in eb4a916
Describe the solution you'd like
Extend the eager enqueue to also include less preferred leases, as users will often specify every locality in descending priority order -- meaning no lease will ever be violating a preference, only less preferred or ok.
Jira issue: CRDB-34427
The text was updated successfully, but these errors were encountered: