HADOOP-11328. ZKFailoverController does not log Exception when doRun raises errors. Contributed by Tianyin Xu.

This commit is contained in:
Tsuyoshi Ozawa 2015-05-04 17:47:37 +09:00
parent 76fa606e2d
commit bb9ddef0e7
2 changed files with 4 additions and 0 deletions

View File

@ -525,6 +525,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-11357. Print information of the build enviornment in test-patch.sh
(aw)
HADOOP-11328. ZKFailoverController does not log Exception when doRun raises
errors. (Tianyin Xu via ozawa)
OPTIMIZATIONS
HADOOP-11785. Reduce the number of listStatus operation in distcp

View File

@ -180,6 +180,7 @@ public Integer run() {
}
});
} catch (RuntimeException rte) {
LOG.fatal("The failover controller encounters runtime error: " + rte);
throw (Exception)rte.getCause();
}
}