Repository: hadoop Updated Branches: refs/heads/branch-3.0 0af04ad89 -> faaf72dcb
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/faaf72dc Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/faaf72dc Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/faaf72dc Branch: refs/heads/branch-3.0 Commit: faaf72dcb39de2708aa103fe4c262cffc2bae799 Parents: 0af04ad Author: Anu Engineer <[email protected]> Authored: Fri Jul 27 06:11:56 2018 -0700 Committer: Anu Engineer <[email protected]> Committed: Fri Jul 27 09:35:02 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/faaf72dc/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]
