Skip to content

Commit ae9ac9f

Browse files
authored
owner: fix unlimited log print "meet lease not found error, refresh session" (#57564) (#57568)
close #57533
1 parent 02ee4c6 commit ae9ac9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/owner/manager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ func (m *ownerManager) campaignLoop(campaignContext context.Context) {
404404
// In this time if we do the campaign operation, the etcd server will return ErrLeaseNotFound.
405405
if terror.ErrorEqual(err, rpctypes.ErrLeaseNotFound) {
406406
close(leaseNotFoundCh)
407+
err = nil
407408
continue
408409
}
409410

0 commit comments

Comments
 (0)