HDFS-14207. ZKFC should catch exception when ha configuration missing. Contributed by Fei Hui.
This commit is contained in:
parent
d43df31751
commit
de34fc148c
|
@ -189,9 +189,9 @@ public class DFSZKFailoverController extends ZKFailoverController {
|
||||||
|
|
||||||
GenericOptionsParser parser = new GenericOptionsParser(
|
GenericOptionsParser parser = new GenericOptionsParser(
|
||||||
new HdfsConfiguration(), args);
|
new HdfsConfiguration(), args);
|
||||||
|
try {
|
||||||
DFSZKFailoverController zkfc = DFSZKFailoverController.create(
|
DFSZKFailoverController zkfc = DFSZKFailoverController.create(
|
||||||
parser.getConfiguration());
|
parser.getConfiguration());
|
||||||
try {
|
|
||||||
System.exit(zkfc.run(parser.getRemainingArgs()));
|
System.exit(zkfc.run(parser.getRemainingArgs()));
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
LOG.error("DFSZKFailOverController exiting due to earlier exception "
|
LOG.error("DFSZKFailOverController exiting due to earlier exception "
|
||||||
|
|
Loading…
Reference in New Issue