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

This commit is contained in:
Steve Loughran 2014-09-27 21:06:31 +01:00
parent 5f16c98ad6
commit 7f300bcdc7
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

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