From 93985dedffd7f0048d30182a8ed3e82846775258 Mon Sep 17 00:00:00 2001 From: Maksim Nabokikh Date: Mon, 16 Mar 2026 08:45:39 +0100 Subject: [PATCH] fix: increase lock acquisition attempts from 60 to 200 for better reliability (#4644) Signed-off-by: maksim.nabokikh --- storage/kubernetes/lock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/kubernetes/lock.go b/storage/kubernetes/lock.go index e3bdb444..092f6d0e 100644 --- a/storage/kubernetes/lock.go +++ b/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