@@ -252,7 +252,7 @@ func startDistChangefeed(
252
252
return err
253
253
}
254
254
if log .ExpensiveLogEnabled (ctx , 2 ) {
255
- log .Dev .Infof (ctx , "tracked spans: %s" , trackedSpans )
255
+ log .Changefeed .Infof (ctx , "tracked spans: %s" , trackedSpans )
256
256
}
257
257
localState .trackedSpans = trackedSpans
258
258
@@ -265,7 +265,7 @@ func startDistChangefeed(
265
265
if progress := localState .progress .GetChangefeed (); progress != nil && progress .SpanLevelCheckpoint != nil {
266
266
spanLevelCheckpoint = progress .SpanLevelCheckpoint
267
267
if log .V (2 ) {
268
- log .Dev .Infof (ctx , "span-level checkpoint: %s" , spanLevelCheckpoint )
268
+ log .Changefeed .Infof (ctx , "span-level checkpoint: %s" , spanLevelCheckpoint )
269
269
}
270
270
}
271
271
p , planCtx , err := makePlan (execCtx , jobID , details , description , initialHighWater ,
@@ -413,7 +413,7 @@ func makePlan(
413
413
evalCtx := execCtx .ExtendedEvalContext ()
414
414
oracle := replicaoracle .NewOracle (replicaOracleChoice , dsp .ReplicaOracleConfig (locFilter ))
415
415
if useBulkOracle .Get (& evalCtx .Settings .SV ) {
416
- log .Dev .Infof (ctx , "using bulk oracle for DistSQL planning" )
416
+ log .Changefeed .Infof (ctx , "using bulk oracle for DistSQL planning" )
417
417
oracle = kvfollowerreadsccl .NewBulkOracle (dsp .ReplicaOracleConfig (evalCtx .Locality ), locFilter , kvfollowerreadsccl.StreakConfig {})
418
418
}
419
419
planCtx := dsp .NewPlanningCtxWithOracle (ctx , execCtx .ExtendedEvalContext (), nil , /* planner */
@@ -423,12 +423,12 @@ func makePlan(
423
423
return nil , nil , err
424
424
}
425
425
if log .ExpensiveLogEnabled (ctx , 2 ) {
426
- log .Dev .Infof (ctx , "spans returned by DistSQL: %v" , spanPartitions )
426
+ log .Changefeed .Infof (ctx , "spans returned by DistSQL: %v" , spanPartitions )
427
427
}
428
428
switch {
429
429
case distMode == sql .LocalDistribution || rangeDistribution == defaultDistribution :
430
430
case rangeDistribution == balancedSimpleDistribution :
431
- log .Dev .Infof (ctx , "rebalancing ranges using balanced simple distribution" )
431
+ log .Changefeed .Infof (ctx , "rebalancing ranges using balanced simple distribution" )
432
432
sender := execCtx .ExecCfg ().DB .NonTransactionalSender ()
433
433
distSender := sender .(* kv.CrossRangeTxnWrapperSender ).Wrapped ().(* kvcoord.DistSender )
434
434
ri := kvcoord .MakeRangeIterator (distSender )
@@ -438,7 +438,7 @@ func makePlan(
438
438
return nil , nil , err
439
439
}
440
440
if log .ExpensiveLogEnabled (ctx , 2 ) {
441
- log .Dev .Infof (ctx , "spans after balanced simple distribution rebalancing: %v" , spanPartitions )
441
+ log .Changefeed .Infof (ctx , "spans after balanced simple distribution rebalancing: %v" , spanPartitions )
442
442
}
443
443
default :
444
444
return nil , nil , errors .AssertionFailedf ("unsupported dist strategy %d and dist mode %d" ,
@@ -473,7 +473,7 @@ func makePlan(
473
473
aggregatorSpecs := make ([]* execinfrapb.ChangeAggregatorSpec , len (spanPartitions ))
474
474
for i , sp := range spanPartitions {
475
475
if log .ExpensiveLogEnabled (ctx , 2 ) {
476
- log .Dev .Infof (ctx , "watched spans for node %d: %v" , sp .SQLInstanceID , sp )
476
+ log .Changefeed .Infof (ctx , "watched spans for node %d: %v" , sp .SQLInstanceID , sp )
477
477
}
478
478
479
479
watches := make ([]execinfrapb.ChangeAggregatorSpec_Watch , len (sp .Spans ))
@@ -543,11 +543,11 @@ func makePlan(
543
543
flowSpecs ,
544
544
execinfrapb.DiagramFlags {},
545
545
); err != nil {
546
- log .Dev .Warningf (ctx , "failed to generate changefeed plan diagram: %s" , err )
546
+ log .Changefeed .Warningf (ctx , "failed to generate changefeed plan diagram: %s" , err )
547
547
} else if diagURL := diagURL .String (); len (diagURL ) > maxLenDiagURL {
548
- log .Dev .Warningf (ctx , "changefeed plan diagram length is too large to be logged: %d" , len (diagURL ))
548
+ log .Changefeed .Warningf (ctx , "changefeed plan diagram length is too large to be logged: %d" , len (diagURL ))
549
549
} else {
550
- log .Dev .Infof (ctx , "changefeed plan diagram: %s" , diagURL )
550
+ log .Changefeed .Infof (ctx , "changefeed plan diagram: %s" , diagURL )
551
551
}
552
552
553
553
return p , planCtx , nil
@@ -656,7 +656,7 @@ func rebalanceSpanPartitions(
656
656
nRanges , ok := p .NumRanges ()
657
657
// We cannot rebalance if we're missing range information.
658
658
if ! ok {
659
- log .Dev .Warning (ctx , "skipping rebalance due to missing range info" )
659
+ log .Changefeed .Warning (ctx , "skipping rebalance due to missing range info" )
660
660
return partitions , nil
661
661
}
662
662
builders [i ].numRanges = nRanges
0 commit comments