You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contextLogger.Info("Waiting for missing processes before continuing with the exclusion", "missingProcesses", missingProcesses, "addressesToExclude", processesToExclude, "allowedExclusions", allowedExclusions, "ongoingExclusions", ongoingExclusions)
// If we are not able to exclude all processes at once print a log message.
89
-
iflen(processesToExclude) >allowedExclusions {
90
-
contextLogger.Info("Some processes are still missing but continuing with the exclusion", "missingProcesses", missingProcesses, "addressesToExclude", processesToExclude, "allowedExclusions", allowedExclusions, "ongoingExclusions", ongoingExclusions)
contextLogger.Info("Waiting for missing processes before continuing with the exclusion", "missingProcesses", missingProcesses, "addressesToExclude", processesToExclude, "allowedExclusions", allowedExclusions, "ongoingExclusions", ongoingExclusions)
95
+
continue
96
+
}
100
97
101
-
// Add as many processes as allowed to the exclusion list.
// If we are not able to exclude all processes at once print a log message.
99
+
iflen(processesToExclude) >allowedExclusions {
100
+
contextLogger.Info("Some processes are still missing but continuing with the exclusion", "missingProcesses", missingProcesses, "addressesToExclude", processesToExclude, "allowedExclusions", allowedExclusions, "ongoingExclusions", ongoingExclusions)
103
101
}
104
102
105
-
iflen(fdbProcessesToExclude) ==0 {
106
-
return&requeue{
107
-
message: "more exclusions needed but not allowed, have to wait for new processes to come up",
returnfmt.Errorf("cluster has %d active generations, but only %d active generations are allowed to safely %s", status.Cluster.RecoveryState.ActiveGenerations, maximumActiveGenerations, action)
458
+
}
459
+
460
+
// If the database is unavailable we shouldn't perform any action on the cluster.
461
+
if!status.Client.DatabaseStatus.Available {
462
+
returnfmt.Errorf("cluster is unavailable, cannot %s", action)
463
+
}
464
+
465
+
returnnil
466
+
}
467
+
468
+
// CanSafelyBounceProcesses returns nil when it is safe to do a bounce on the cluster or returns an error with more information
469
+
// why it's not safe to bounce processes in the cluster.
0 commit comments