Skip to content

Commit

Permalink
owner: fix unlimited log print "meet lease not found error, refresh s…
Browse files Browse the repository at this point in the history
…ession" (#57564) (#57568)

close #57533
  • Loading branch information
ti-chi-bot authored Nov 21, 2024
1 parent 02ee4c6 commit ae9ac9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/owner/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ func (m *ownerManager) campaignLoop(campaignContext context.Context) {
// In this time if we do the campaign operation, the etcd server will return ErrLeaseNotFound.
if terror.ErrorEqual(err, rpctypes.ErrLeaseNotFound) {
close(leaseNotFoundCh)
err = nil
continue
}

Expand Down

0 comments on commit ae9ac9f

Please sign in to comment.