Skip to content

Commit

Permalink
owner(cdc): clean up metrics when owner resigns (#4998)
Browse files Browse the repository at this point in the history
close #4774
  • Loading branch information
liuzix authored Mar 28, 2022
1 parent 4ccb350 commit 809ad60
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 @@ -276,6 +276,7 @@ func (o *ownerImpl) Query(query *Query, done chan<- error) {
// AsyncStop stops the owner asynchronously
func (o *ownerImpl) AsyncStop() {
atomic.StoreInt32(&o.closed, 1)
o.cleanStaleMetrics()
}

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

0 comments on commit 809ad60

Please sign in to comment.