Repository: hadoop Updated Branches: refs/heads/branch-3.0.3 5a82f10e3 -> 6461b379c
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/6461b379 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6461b379 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6461b379 Branch: refs/heads/branch-3.0.3 Commit: 6461b379c9248150a475d3823917df601887aba5 Parents: 5a82f10 Author: Anu Engineer <[email protected]> Authored: Fri Jul 27 06:11:56 2018 -0700 Committer: Anu Engineer <[email protected]> Committed: Fri Jul 27 06:18:17 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/6461b379/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 9fdc838..2ec5ef0 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 @@ -165,7 +165,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]
