HDFS-13727. Log full stack trace if DiskBalancer exits with an unhandled exception.
Contributed by Gabor Bota. (cherry picked from commit 64e739e344ac474046d4f4ecf0865dd92be13762)
This commit is contained in:
parent
d6627cda9d
commit
2ebd553072
@ -172,7 +172,9 @@ public static void main(String[] argv) throws Exception {
|
||||
try {
|
||||
res = ToolRunner.run(shell, argv);
|
||||
} catch (Exception ex) {
|
||||
LOG.error(ex.toString());
|
||||
String msg = String.format("Exception thrown while running %s.",
|
||||
DiskBalancerCLI.class.getSimpleName());
|
||||
LOG.error(msg, ex);
|
||||
res = 1;
|
||||
}
|
||||
System.exit(res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user