mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
bug fix: dead loop leaderelection
This commit is contained in:
parent
64243d4806
commit
7a2c579409
@ -218,7 +218,7 @@ func (le *LeaderElector) renew(ctx context.Context) {
|
||||
le.config.Lock.RecordEvent("stopped leading")
|
||||
glog.Infof("failed to renew lease %v: %v", desc, err)
|
||||
cancel()
|
||||
}, 0, ctx.Done())
|
||||
}, le.config.RetryPeriod, ctx.Done())
|
||||
}
|
||||
|
||||
// tryAcquireOrRenew tries to acquire a leader lease if it is not already acquired,
|
||||
|
Loading…
Reference in New Issue
Block a user