Skip to content

Commit

Permalink
checking the timeout in ZKFailovercontroller after multiplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
teamconfx committed Sep 16, 2023
1 parent 120620c commit e92b8c1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ public Void run() throws Exception {
private void doGracefulFailover()
throws ServiceFailedException, IOException, InterruptedException {
int timeout = FailoverController.getGracefulFenceTimeout(conf) * 2;
Preconditions.checkArgument(timeout >= 0, "timeout should be non-negative.");

// Phase 1: pre-flight checks
checkEligibleForFailover();
Expand Down

0 comments on commit e92b8c1

Please sign in to comment.