Skip to content

Commit

Permalink
remove LastCheckpoint metric after losing ownership
Browse files Browse the repository at this point in the history
Signed-off-by: hillium <[email protected]>
  • Loading branch information
YuJuncen committed Mar 21, 2023
1 parent 88174d2 commit 474dc77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions br/pkg/streamhelper/advancer_daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (c *CheckpointAdvancer) Name() string {

func (c *CheckpointAdvancer) onStop() {
metrics.AdvancerOwner.Set(0.0)
metrics.LastCheckpoint.Reset()
c.stopSubscriber()
}

Expand Down

0 comments on commit 474dc77

Please sign in to comment.