Skip to content

Commit 0ff29cc

Browse files
committed
kvserver: trace reason for OptimisticEvalConflictsError
This would have helped to understand #153350. Epic: none
1 parent 8b1e1a9 commit 0ff29cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/kv/kvserver/replica_read.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ func (r *Replica) executeReadOnlyBatch(
147147
// conflicts for by using collectSpansRead as done below in the
148148
// non-error path.
149149
if !g.CheckOptimisticNoLatchConflicts() {
150+
log.Eventf(ctx, "optimistic evaluation failed with %s", pErr)
150151
return nil, g, nil, kvpb.NewError(kvpb.NewOptimisticEvalConflictsError())
151152
}
152153
}

0 commit comments

Comments
 (0)