Skip to content

Commit

Permalink
Merge pull request #3003 from awmirantis/fix-failure-to-rollback
Browse files Browse the repository at this point in the history
Fix update issue on where service doesn't roll back on failure
  • Loading branch information
dperny authored Jun 9, 2021
2 parents 62d78f2 + fc1338c commit ccf0585
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manager/orchestrator/update/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ slotsLoop:
wg.Wait()

if !stopped {
// if a delay is set we need to monitor for a period longer than the delay
// otherwise we will leave the monitorLoop before the task is done delaying
if updateConfig.Delay >= monitoringPeriod {
monitoringPeriod = updateConfig.Delay + 1*time.Second
}
// Keep watching for task failures for one more monitoringPeriod,
// before declaring the update complete.
doneMonitoring := time.After(monitoringPeriod)
Expand Down

0 comments on commit ccf0585

Please sign in to comment.