@@ -195,6 +195,7 @@ func (tc *txnCommitter) SendLocked(
195
195
// so interceptors above the txnCommitter in the stack don't need to be
196
196
// made aware that the record is staging.
197
197
pErr = maybeRemoveStagingStatusInErr (pErr )
198
+ log .VEventf (ctx , 2 , "batch with EndTxn(commit=true) failed: %v" , pErr )
198
199
return nil , pErr
199
200
}
200
201
@@ -216,6 +217,7 @@ func (tc *txnCommitter) SendLocked(
216
217
// the EndTxn request, either because canCommitInParallel returned false
217
218
// or because there were no unproven in-flight writes (see txnPipeliner)
218
219
// and there were no writes in the batch request.
220
+ log .VEventf (ctx , 2 , "parallel commit attempt for transaction %s resulted in explicit commit" , br .Txn )
219
221
return br , nil
220
222
default :
221
223
return nil , kvpb .NewErrorf ("unexpected response status without error: %v" , br .Txn )
@@ -296,6 +298,8 @@ func (tc *txnCommitter) validateEndTxnBatch(ba *kvpb.BatchRequest) error {
296
298
func (tc * txnCommitter ) sendLockedWithElidedEndTxn (
297
299
ctx context.Context , ba * kvpb.BatchRequest , et * kvpb.EndTxnRequest ,
298
300
) (br * kvpb.BatchResponse , pErr * kvpb.Error ) {
301
+ log .VEventf (ctx , 2 , "eliding EndTxn request for read-only, non-locking transaction" )
302
+
299
303
// Send the batch without its final request, which we know to be the EndTxn
300
304
// request that we're eliding. If this would result in us sending an empty
301
305
// batch, mock out a reply instead of sending anything.
0 commit comments