HADOOP-17700. ExitUtil#halt info log should log HaltException (#3015)
Reviewed-by: Steve Loughran <stevel@apache.org> Reviewed-by: Wei-Chiu Chuang <weichiu@apache.org> (cherry picked from commit c70ee2d548feb9ec9a957e120045983dd21d9964)
This commit is contained in:
parent
2823d77f19
commit
3c1f3b87fa
@ -232,8 +232,7 @@ public static synchronized void halt(HaltException ee) throws HaltException {
|
|||||||
try {
|
try {
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
//exit indicates a problem, log it
|
//exit indicates a problem, log it
|
||||||
LOG.debug("Halt with status {}: {}", status, msg, ee);
|
LOG.info("Halt with status {}: {}", status, msg, ee);
|
||||||
LOG.info("Halt with status {}: {}", status, msg, msg);
|
|
||||||
}
|
}
|
||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
// ignore exceptions here, as it may be due to an out of memory situation
|
// ignore exceptions here, as it may be due to an out of memory situation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user