@@ -1049,7 +1049,7 @@ func (ds *DistSender) getRoutingInfo(
1049
1049
containsFn = (* roachpb .RangeDescriptor ).ContainsKeyInverted
1050
1050
}
1051
1051
if ! containsFn (returnToken .Desc (), descKey ) {
1052
- log .Dev .Fatalf (ctx , "programming error: range resolution returning non-matching descriptor: " +
1052
+ log .KvExec .Fatalf (ctx , "programming error: range resolution returning non-matching descriptor: " +
1053
1053
"desc: %s, key: %s, reverse: %t" , returnToken .Desc (), descKey , redact .Safe (useReverseScan ))
1054
1054
}
1055
1055
}
@@ -1284,7 +1284,7 @@ func (ds *DistSender) Send(
1284
1284
if len (parts ) != 1 {
1285
1285
panic ("EndTxn not in last chunk of batch" )
1286
1286
} else if require1PC {
1287
- log .Dev .Fatalf (ctx , "required 1PC transaction cannot be split: %s" , ba )
1287
+ log .KvExec .Fatalf (ctx , "required 1PC transaction cannot be split: %s" , ba )
1288
1288
}
1289
1289
parts = splitBatchAndCheckForRefreshSpans (ba , true /* split ET */ )
1290
1290
onePart = false
@@ -2228,7 +2228,7 @@ func (ds *DistSender) sendPartialBatch(
2228
2228
{
2229
2229
var s redact.StringBuilder
2230
2230
slowRangeRPCWarningStr (& s , ba , dur , attempts , routingTok .Desc (), err , reply )
2231
- log .Dev .Warningf (ctx , "slow range RPC: %v" , & s )
2231
+ log .KvExec .Warningf (ctx , "slow range RPC: %v" , & s )
2232
2232
}
2233
2233
// If the RPC wasn't successful, defer the logging of a message once the
2234
2234
// RPC is not retried any more.
@@ -2240,7 +2240,7 @@ func (ds *DistSender) sendPartialBatch(
2240
2240
ds .metrics .SlowRPCs .Dec (1 )
2241
2241
var s redact.StringBuilder
2242
2242
slowRangeRPCReturnWarningStr (& s , tBegin .Elapsed (), attempts )
2243
- log .Dev .Warningf (ctx , "slow RPC response: %v" , & s )
2243
+ log .KvExec .Warningf (ctx , "slow RPC response: %v" , & s )
2244
2244
}(tBegin , attempts )
2245
2245
}
2246
2246
tBegin = 0 // prevent reentering branch for this RPC
@@ -2333,7 +2333,7 @@ func (ds *DistSender) sendPartialBatch(
2333
2333
}
2334
2334
2335
2335
if pErr == nil {
2336
- log .Dev .Fatal (ctx , "exited retry loop without an error or early exit" )
2336
+ log .KvExec .Fatal (ctx , "exited retry loop without an error or early exit" )
2337
2337
}
2338
2338
2339
2339
return response {pErr : pErr }
@@ -2563,7 +2563,7 @@ func (ds *DistSender) sendToReplicas(
2563
2563
case kvpb .RoutingPolicy_NEAREST :
2564
2564
replicaFilter = AllExtantReplicas
2565
2565
default :
2566
- log .Dev .Fatalf (ctx , "unknown routing policy: %s" , ba .RoutingPolicy )
2566
+ log .KvExec .Fatalf (ctx , "unknown routing policy: %s" , ba .RoutingPolicy )
2567
2567
}
2568
2568
desc := routing .Desc ()
2569
2569
replicas , err := NewReplicaSlice (ctx , ds .nodeDescs , desc , routing .Leaseholder (), replicaFilter )
@@ -2603,7 +2603,7 @@ func (ds *DistSender) sendToReplicas(
2603
2603
log .VEventf (ctx , 2 , "routing to nearest replica; leaseholder not required order=%v" , replicas )
2604
2604
2605
2605
default :
2606
- log .Dev .Fatalf (ctx , "unknown routing policy: %s" , ba .RoutingPolicy )
2606
+ log .KvExec .Fatalf (ctx , "unknown routing policy: %s" , ba .RoutingPolicy )
2607
2607
}
2608
2608
2609
2609
// NB: upgrade the connection class to SYSTEM, for critical ranges. Set it to
@@ -2737,7 +2737,7 @@ func (ds *DistSender) sendToReplicas(
2737
2737
} else if routing .Leaseholder () == nil {
2738
2738
// NB: Normally we don't have both routeToLeaseholder and a nil
2739
2739
// leaseholder. This could be changed to an assertion.
2740
- log .Dev .Errorf (ctx , "attempting %v to route to leaseholder, but the leaseholder is unknown %v" , ba , routing )
2740
+ log .KvExec .Errorf (ctx , "attempting %v to route to leaseholder, but the leaseholder is unknown %v" , ba , routing )
2741
2741
} else if ba .Replica .NodeID == routing .Leaseholder ().NodeID {
2742
2742
// We are sending this request to the leaseholder, so it doesn't
2743
2743
// make sense to attempt to proxy it.
@@ -2780,7 +2780,7 @@ func (ds *DistSender) sendToReplicas(
2780
2780
if admissionpb .WorkPriority (ba .AdmissionHeader .Priority ) >= admissionpb .NormalPri {
2781
2781
// Note that these RPC may or may not have succeeded. Errors are counted separately below.
2782
2782
ds .metrics .SlowReplicaRPCs .Inc (1 )
2783
- log .Dev .Warningf (ctx , "slow replica RPC: %v" , & s )
2783
+ log .KvExec .Warningf (ctx , "slow replica RPC: %v" , & s )
2784
2784
} else {
2785
2785
log .Eventf (ctx , "slow replica RPC: %v" , & s )
2786
2786
}
0 commit comments