1
0
Pārlūkot izejas kodu

HADOOP-11143 NetUtils.wrapException loses inner stack trace on BindException

Steve Loughran 10 gadi atpakaļ
vecāks
revīzija
7f300bcdc7

+ 3 - 0
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

+ 1 - 1
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
               + ":"