1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

(Bugfix) Proper handling of --agency.retries argument (#1479)

This commit is contained in:
Nikita Vaniasin 2023-11-09 06:40:00 +01:00 committed by GitHub
parent 9d0f6e0b1b
commit 686e51b7e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
- (Feature) License Manager
- (Improvement) Use Async mode for backup creation
- (Feature) (ML) CRD
- (Bugfix) Proper handling of --agency.retries argument
## [1.2.35](https://github.com/arangodb/kube-arangodb/tree/1.2.35) (2023-11-06)
- (Maintenance) Update go-driver to v1.6.0, update IsNotFound() checks

View file

@ -79,7 +79,7 @@ func (i *retryLoader[T]) Refresh(ctx context.Context, discovery agencyCache.Lead
i.lock.Lock()
defer i.lock.Unlock()
for z := 0; z < i.retries-1; z++ {
for z := 0; z < i.retries; z++ {
if err := i.parent.Refresh(ctx, discovery); err != nil {
logger.Err(err).Debug("Unable to refresh agency while retrying")
continue