Skip to content

Commit

Permalink
owner(cdc): clean up metrics when owner resigns (pingcap#4998)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzix committed Apr 24, 2022
1 parent 57f85ed commit 235bbc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cdc/owner/owner.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ func (o *Owner) WriteDebugInfo(w io.Writer) {
// AsyncStop stops the owner asynchronously
func (o *Owner) AsyncStop() {
atomic.StoreInt32(&o.closed, 1)
o.cleanStaleMetrics()
}

func (o *Owner) cleanUpChangefeed(state *orchestrator.ChangefeedReactorState) {
Expand Down

0 comments on commit 235bbc8

Please sign in to comment.