From 7de12736ece9240707a66dc4d50ea1224005203d Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Thu, 12 Jan 2023 13:09:21 -0500 Subject: [PATCH] kv: introduce trace event on concurrency retry error Improves observability. Release note: None Epic: None --- pkg/kv/kvserver/replica_send.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/kv/kvserver/replica_send.go b/pkg/kv/kvserver/replica_send.go index e0017ea86cbf..6879b6ce15f5 100644 --- a/pkg/kv/kvserver/replica_send.go +++ b/pkg/kv/kvserver/replica_send.go @@ -497,6 +497,8 @@ func (r *Replica) executeBatchWithConcurrencyRetries( return nil, nil, pErr } + log.VErrEventf(ctx, 2, "concurrency retry error: %s", pErr) + // The batch execution func returned a server-side concurrency retry error. // It may have either handed back ownership of the concurrency guard without // having already released the guard's latches, or in case of certain types