Browse Source

fix: increase lock acquisition attempts from 60 to 200 for better reliability (#4644)

Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
pull/4611/merge
Maksim Nabokikh 22 hours ago committed by GitHub
parent
commit
93985dedff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      storage/kubernetes/lock.go

4
storage/kubernetes/lock.go

@ -42,9 +42,9 @@ func newRefreshTokenLock(cli *client) *refreshTokenLock {
}
// Lock polls until the lock annotation can be set on the refresh token resource.
// Returns nil when the lock is acquired, or an error on timeout (60 attempts × 100ms).
// Returns nil when the lock is acquired, or an error on timeout (200 attempts × 100ms).
func (l *refreshTokenLock) Lock(id string) error {
for i := 0; i <= 60; i++ {
for i := 0; i <= 200; i++ {
ok, err := l.setLockAnnotation(id)
if err != nil {
return err

Loading…
Cancel
Save