Skip to content

Commit

Permalink
HADOOP-18905. Negative timeout in ZKFailovercontroller due to overflo…
Browse files Browse the repository at this point in the history
…w. (apache#6092). Contributed by ConfX.

Reviewed-by: Inigo Goiri <inigoiri@apache.org>
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
  • Loading branch information
teamconfx authored and jiajunmao committed Feb 6, 2024
1 parent 2ab04ec commit 6d4d733
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,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 6d4d733

Please sign in to comment.