YARN-3006. Improve the error message when attempting manual failover with auto-failover enabled. (Akira AJISAKA via wangda)
This commit is contained in:
parent
ac7d152901
commit
7d46a806e7
@ -279,7 +279,13 @@ private int failover(CommandLine cmd)
|
|||||||
"supported with auto-failover enabled.");
|
"supported with auto-failover enabled.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return gracefulFailoverThroughZKFCs(toNode);
|
try {
|
||||||
|
return gracefulFailoverThroughZKFCs(toNode);
|
||||||
|
} catch (UnsupportedOperationException e){
|
||||||
|
errOut.println("Failover command is not supported with " +
|
||||||
|
"auto-failover enabled: " + e.getLocalizedMessage());
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FailoverController fc = new FailoverController(getConf(),
|
FailoverController fc = new FailoverController(getConf(),
|
||||||
|
@ -189,6 +189,9 @@ Release 2.8.0 - UNRELEASED
|
|||||||
YARN-3469. ZKRMStateStore: Avoid setting watches that are not required.
|
YARN-3469. ZKRMStateStore: Avoid setting watches that are not required.
|
||||||
(Jun Gong via kasha)
|
(Jun Gong via kasha)
|
||||||
|
|
||||||
|
YARN-3006. Improve the error message when attempting manual failover with
|
||||||
|
auto-failover enabled. (Akira AJISAKA via wangda)
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
||||||
YARN-3197. Confusing log generated by CapacityScheduler. (Varun Saxena
|
YARN-3197. Confusing log generated by CapacityScheduler. (Varun Saxena
|
||||||
|
Loading…
Reference in New Issue
Block a user