Skip to content

Commit

Permalink
metrics(ticdc): fix some missing db sorter related metrics (#11547)
Browse files Browse the repository at this point in the history
close #11574
  • Loading branch information
3AceShowHand committed Sep 6, 2024
1 parent 6ddaa4f commit f74f863
Show file tree
Hide file tree
Showing 7 changed files with 271 additions and 547 deletions.
2 changes: 1 addition & 1 deletion cdc/scheduler/internal/v3/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (a *agent) Tick(ctx context.Context) (*schedulepb.Barrier, error) {

outboundMessages = append(outboundMessages, responses...)

if err := a.sendMsgs(ctx, outboundMessages); err != nil {
if err = a.sendMsgs(ctx, outboundMessages); err != nil {
return nil, errors.Trace(err)
}

Expand Down
2 changes: 2 additions & 0 deletions cdc/scheduler/internal/v3/replication/replication_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,8 @@ func (r *Manager) CleanMetrics() {
slowestTableStageCheckpointTsLagHistogramVec.Reset()
slowestTableStageResolvedTsLagHistogramVec.Reset()
slowestTableRegionGaugeVec.Reset()
slowestTablePullerResolvedTs.Reset()
slowestTablePullerResolvedTsLag.Reset()
}

// SetReplicationSetForTests is only used in tests.
Expand Down
Loading

0 comments on commit f74f863

Please # to comment.