kv: log errors loudly when stuck in NotLeaseHolderErrors backoff #83830
Labels
A-kv-client
Relating to the KV client and the KV interface.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
E-quick-win
Likely to be a quick win for someone experienced.
no-issue-activity
T-kv
KV Team
X-stale
Related to #83687.
When a request appears to be stuck in a
NotLeaseHolderErrors
loop (i.e. two replicas redirecting to each other), we should start loudly logging (log.Warning
) the errors that the DistSender is seeing. This avoids the need to drop into logspy like we had to in order to understand #83687. The full NotLeaseHolderErrors are important, as they point at the problematic range and at the replicas in that range that are incoherent. This allows an operator to dig further.Jira issue: CRDB-17288
The text was updated successfully, but these errors were encountered: