Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update node recovery check timeout values #287

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public abstract class NodeAction extends Action {

public static final String POSTHEALTHCHECK_INTERVAL = "postHealthcheckInterval";
public static final String RECOVERY_TIMEOUT = "recoveryTimeout";
private static final int DEFAULT_RECOVERY_TIMEOUT_MS = 1800_000; // 30 minutes
private static final int DEFAULT_HEALTHCHECK_INTERVAL_MS = 10_000; // 10 seconds

enum MaintenancePolicy {
NONE,
Expand Down Expand Up @@ -151,8 +153,8 @@ protected void postActionValidation() throws Exception {

public void checkAndWaitForNodeToRecover() throws TimeoutException {
long completeTime = System.currentTimeMillis();
int timeout = 60_000;
int healthCheckInterval = 10_000;
int timeout = DEFAULT_RECOVERY_TIMEOUT_MS;
int healthCheckInterval = DEFAULT_HEALTHCHECK_INTERVAL_MS;
if (containsAttribute(RECOVERY_TIMEOUT)) {
timeout = getAttribute(RECOVERY_TIMEOUT).getValue();
}
Expand Down
Loading