HADOOP-11143 NetUtils.wrapException loses inner stack trace on BindException
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/7f300bcd Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/7f300bcd Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/7f300bcd Branch: refs/heads/trunk Commit: 7f300bcdc78d164a42d56c3f65a512cfe0ac40be Parents: 5f16c98 Author: Steve Loughran <[email protected]> Authored: Sat Sep 27 21:06:31 2014 +0100 Committer: Steve Loughran <[email protected]> Committed: Sat Sep 27 21:06:53 2014 +0100 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../src/main/java/org/apache/hadoop/net/NetUtils.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/7f300bcd/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 7257ba1..14c21fa 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -882,6 +882,9 @@ Release 2.6.0 - UNRELEASED HADOOP-10552. Fix usage and example at FileSystemShell.apt.vm (Kenji Kikushima via aw) + HADOOP-11143 NetUtils.wrapException loses inner stack trace on BindException + (stevel) + Release 2.5.1 - 2014-09-05 INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/7f300bcd/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java index 8595f87..9ee0f3e 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java @@ -716,7 +716,7 @@ public class NetUtils { final int localPort, final IOException exception) { if (exception instanceof BindException) { - return new BindException( + return wrapWithMessage(exception, "Problem binding to [" + localHost + ":"
