Skip to content

Commit 99b8703

Browse files
craig[bot]tbg
andcommitted
Merge #153556
153556: kvserver: trace reason for OptimisticEvalConflictsError r=tbg a=tbg This would have helped to understand #153350. Epic: none Co-authored-by: Tobias Grieger <[email protected]>
2 parents 5aa4b8f + 0ff29cc commit 99b8703

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)