@@ -19,13 +19,12 @@ import (
19
19
"sync"
20
20
"time"
21
21
22
- "github.com/flowbehappy/tigate/pkg/common"
23
- "github.com/flowbehappy/tigate/pkg/node"
24
-
25
22
"github.com/flowbehappy/tigate/heartbeatpb"
23
+ "github.com/flowbehappy/tigate/pkg/common"
26
24
appcontext "github.com/flowbehappy/tigate/pkg/common/context"
27
25
"github.com/flowbehappy/tigate/pkg/messaging"
28
26
"github.com/flowbehappy/tigate/pkg/metrics"
27
+ "github.com/flowbehappy/tigate/pkg/node"
29
28
"github.com/flowbehappy/tigate/scheduler"
30
29
"github.com/pingcap/log"
31
30
"github.com/pingcap/tiflow/cdc/model"
@@ -145,7 +144,6 @@ func (c *coordinator) Tick(
145
144
// 5. send saved checkpoint ts to maintainer
146
145
c .sendSavedCheckpointTsToMaintainer ()
147
146
148
- c .printStatus ()
149
147
return state , nil
150
148
}
151
149
@@ -425,32 +423,3 @@ func (c *coordinator) sendSavedCheckpointTsToMaintainer() {
425
423
}
426
424
}
427
425
}
428
-
429
- func (c * coordinator ) printStatus () {
430
- if time .Since (c .lastCheckTime ) > time .Second * 10 {
431
- workingTask := 0
432
- absentTask := 0
433
- commitTask := 0
434
- removingTask := 0
435
- for _ , value := range c .supervisor .StateMachines {
436
- switch value .State {
437
- case scheduler .SchedulerStatusAbsent :
438
- absentTask ++
439
- case scheduler .SchedulerStatusCommiting :
440
- commitTask ++
441
- case scheduler .SchedulerStatusWorking :
442
- workingTask ++
443
- case scheduler .SchedulerStatusRemoving :
444
- removingTask ++
445
- }
446
- }
447
- log .Info ("changefeed status" ,
448
- zap .Int ("absent" , absentTask ),
449
- zap .Int ("commit" , commitTask ),
450
- zap .Int ("working" , workingTask ),
451
- zap .Int ("removing" , removingTask ),
452
- zap .Any ("runningTask" , len (c .supervisor .RunningTasks )),
453
- )
454
- c .lastCheckTime = time .Now ()
455
- }
456
- }
0 commit comments