mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Bugfix] Don't abort plan in case of optional action timeout (#1573)
This commit is contained in:
parent
51551e51cf
commit
1dc660ec5a
2 changed files with 7 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
- (Maintenance) Reduce binary size
|
||||
- (Maintenance) Update Features Description, Supported K8S Versions and K8S Dependency to 1.28.5
|
||||
- (Feature) (ML) Featurization Job Type
|
||||
- (Bugfix) Don't abort plan in case of optional action timeout
|
||||
|
||||
## [1.2.36](https://github.com/arangodb/kube-arangodb/tree/1.2.36) (2024-01-08)
|
||||
- (Documentation) Improvements and fixes for rendered documentation (GH pages)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//
|
||||
// DISCLAIMER
|
||||
//
|
||||
// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany
|
||||
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -397,10 +397,14 @@ func (d *Reconciler) executeAction(ctx context.Context, planAction api.Action, a
|
|||
d.context.CreateEvent(k8sutil.NewPlanAbortedEvent(d.context.GetAPIObject(), string(planAction.Type), planAction.MemberID, planAction.Group.AsRole()))
|
||||
return false, true, false, false, nil
|
||||
} else if isActionTimeout(timeout, planAction) {
|
||||
if planAction.Type.Optional() {
|
||||
log.Warn("Optional action not finished in time. Skipping")
|
||||
return true, false, false, false, nil
|
||||
}
|
||||
|
||||
log.Warn("Action not finished in time. Removing the entire plan")
|
||||
d.context.CreateEvent(k8sutil.NewPlanTimeoutEvent(d.context.GetAPIObject(), string(planAction.Type), planAction.MemberID, planAction.Group.AsRole()))
|
||||
return false, true, false, false, nil
|
||||
|
||||
}
|
||||
|
||||
// Timeout not yet expired, come back soon
|
||||
|
|
Loading…
Reference in a new issue