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

[Bugfix] Quick checking ArangoSync availability (#1188)

This commit is contained in:
Tomasz Mielech 2022-11-22 09:19:17 +01:00 committed by GitHub
parent 8b6fe89a1d
commit 5da91de9e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -23,6 +23,7 @@
- (Improvement) Don't serialize and deprecate two DeploymentReplicationStatus fields
- (Improvement) Improve error message when replication can't be configured
- (Bugfix) Fix License handling in case of broken license secret
- (Bugfix) Check ArangoSync availability without checking healthiness
## [1.2.20](https://github.com/arangodb/kube-arangodb/tree/1.2.20) (2022-10-25)
- (Feature) Add action progress

View file

@ -197,8 +197,11 @@ func (a *actionWaitForMemberUp) checkProgressArangoSync(ctx context.Context) (bo
a.log.Err(err).Debug("Failed to create arangosync client")
return false, false, nil
}
if err := c.Health(ctx); err != nil {
a.log.Err(err).Debug("Health not ok yet")
// When replication is in initial-sync state, then it can take a long time to be in running state.
// This is the reason why Health of ArangoSync can not be checked here.
if _, err := c.Version(ctx); err != nil {
a.log.Err(err).Debug("Member is not ready yet")
return false, false, nil
}
return true, false, nil