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