@@ -239,10 +239,10 @@ func newRootTxnCoordSender(
239
239
txn .AssertInitialized (context .TODO ())
240
240
241
241
if txn .Status != roachpb .PENDING {
242
- log .Dev .Fatalf (context .TODO (), "unexpected non-pending txn in RootTransactionalSender: %s" , txn )
242
+ log .KvExec .Fatalf (context .TODO (), "unexpected non-pending txn in RootTransactionalSender: %s" , txn )
243
243
}
244
244
if txn .Sequence != 0 {
245
- log .Dev .Fatalf (context .TODO (), "cannot initialize root txn with seq != 0: %s" , txn )
245
+ log .KvExec .Fatalf (context .TODO (), "cannot initialize root txn with seq != 0: %s" , txn )
246
246
}
247
247
248
248
tcs := & TxnCoordSender {
@@ -380,7 +380,7 @@ func newLeafTxnCoordSender(
380
380
txn .AssertInitialized (context .TODO ())
381
381
382
382
if txn .Status != roachpb .PENDING {
383
- log .Dev .Fatalf (context .TODO (), "unexpected non-pending txn in LeafTransactionalSender: %s" , tis )
383
+ log .KvExec .Fatalf (context .TODO (), "unexpected non-pending txn in LeafTransactionalSender: %s" , tis )
384
384
}
385
385
386
386
tcs := & TxnCoordSender {
@@ -537,7 +537,7 @@ func (tc *TxnCoordSender) Send(
537
537
538
538
// Associate the txnID with the trace.
539
539
if tc .mu .txn .ID == (uuid.UUID {}) {
540
- log .Dev .Fatalf (ctx , "cannot send transactional request through unbound TxnCoordSender" )
540
+ log .KvExec .Fatalf (ctx , "cannot send transactional request through unbound TxnCoordSender" )
541
541
}
542
542
if sp .IsVerbose () {
543
543
sp .SetTag ("txnID" , attribute .StringValue (tc .mu .txn .ID .String ()))
@@ -674,7 +674,7 @@ func (tc *TxnCoordSender) Send(
674
674
// docs/RFCS/20200811_non_blocking_txns.md.
675
675
func (tc * TxnCoordSender ) maybeCommitWait (ctx context.Context , deferred bool ) error {
676
676
if tc .mu .txn .Status != roachpb .PREPARED && tc .mu .txn .Status != roachpb .COMMITTED {
677
- log .Dev .Fatalf (ctx , "maybeCommitWait called when not prepared/committed" )
677
+ log .KvExec .Fatalf (ctx , "maybeCommitWait called when not prepared/committed" )
678
678
}
679
679
if tc .mu .commitWaitDeferred && ! deferred {
680
680
// If this is an automatic commit-wait call and the user of this
@@ -787,7 +787,7 @@ func (tc *TxnCoordSender) maybeRejectClientLocked(
787
787
// unexpected for it to find the transaction already in a txnFinalized
788
788
// state. This may be a bug, so log a stack trace.
789
789
stack := debugutil .Stack ()
790
- log .Dev .Errorf (ctx , "%s. stack:\n %s" , msg , stack )
790
+ log .KvExec .Errorf (ctx , "%s. stack:\n %s" , msg , stack )
791
791
}
792
792
reason := kvpb .TransactionStatusError_REASON_UNKNOWN
793
793
if tc .mu .txn .Status == roachpb .COMMITTED {
@@ -1028,7 +1028,7 @@ func (tc *TxnCoordSender) updateStateLocked(
1028
1028
if errTxnID != txnID {
1029
1029
// KV should not return errors for transactions other than the one in
1030
1030
// the BatchRequest.
1031
- log .Dev .Fatalf (ctx , "retryable error for the wrong txn. ba.Txn: %s. pErr: %s" ,
1031
+ log .KvExec .Fatalf (ctx , "retryable error for the wrong txn. ba.Txn: %s. pErr: %s" ,
1032
1032
ba .Txn , pErr )
1033
1033
}
1034
1034
return kvpb .NewError (tc .handleRetryableErrLocked (ctx , pErr ))
@@ -1095,7 +1095,7 @@ func sanityCheckErrWithTxn(
1095
1095
Detail : "you have encountered a known bug in CockroachDB, please consider " +
1096
1096
"reporting on the Github issue or reach out via Support." ,
1097
1097
}))
1098
- log .Dev .Warningf (ctx , "%v" , err )
1098
+ log .KvExec .Warningf (ctx , "%v" , err )
1099
1099
return err
1100
1100
}
1101
1101
@@ -1479,7 +1479,7 @@ func (tc *TxnCoordSender) UpdateRootWithLeafFinalState(
1479
1479
defer tc .mu .Unlock ()
1480
1480
1481
1481
if tc .mu .txn .ID == (uuid.UUID {}) {
1482
- log .Dev .Fatalf (ctx , "cannot UpdateRootWithLeafFinalState on unbound TxnCoordSender. input id: %s" , tfs .Txn .ID )
1482
+ log .KvExec .Fatalf (ctx , "cannot UpdateRootWithLeafFinalState on unbound TxnCoordSender. input id: %s" , tfs .Txn .ID )
1483
1483
}
1484
1484
1485
1485
// Sanity check: don't combine if the tfs is for a different txn ID.
0 commit comments