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 Oct 29, 2023
1 parent b9c9c42 commit 7c6af6a
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 7c6af6a

Please sign in to comment.