|
@@ -660,6 +660,7 @@ public abstract class ZKFailoverController {
|
|
|
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();
|