Repository: hadoop Updated Branches: refs/heads/branch-3.1 d6627cda9 -> 2ebd55307
HDFS-13727. Log full stack trace if DiskBalancer exits with an unhandled exception. Contributed by Gabor Bota. (cherry picked from commit 64e739e344ac474046d4f4ecf0865dd92be13762) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2ebd5530 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2ebd5530 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2ebd5530 Branch: refs/heads/branch-3.1 Commit: 2ebd5530725f23ff200bd659e43645265b7e1bce Parents: d6627cd Author: Anu Engineer <[email protected]> Authored: Fri Jul 27 06:11:56 2018 -0700 Committer: Anu Engineer <[email protected]> Committed: Fri Jul 27 09:43:44 2018 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/hadoop/hdfs/tools/DiskBalancerCLI.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/2ebd5530/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancerCLI.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancerCLI.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancerCLI.java index 00e6f04..34bd68b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancerCLI.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancerCLI.java @@ -172,7 +172,9 @@ public class DiskBalancerCLI extends Configured implements Tool { 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); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
