Author: cdouglas
Date: Thu May 29 17:49:49 2008
New Revision: 661540
URL: http://svn.apache.org/viewvc?rev=661540&view=rev
Log:
HADOOP-3434. Retain the cause of the bind failure in Server::bind.
Contributed by Steve Loughran.
Modified:
hadoop/core/trunk/CHANGES.txt
hadoop/core/trunk/src/java/org/apache/hadoop/ipc/Server.java
Modified: hadoop/core/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=661540&r1=661539&r2=661540&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu May 29 17:49:49 2008
@@ -179,6 +179,9 @@
datanode, now can report corrupt replicas received from src node to
the namenode. (Lohit Vijayarenu via rangadi)
+ HADOOP-3434. Retain the cause of the bind failure in Server::bind.
+ (Steve Loughran via cdouglas)
+
OPTIMIZATIONS
HADOOP-3274. The default constructor of BytesWritable creates empty
Modified: hadoop/core/trunk/src/java/org/apache/hadoop/ipc/Server.java
URL:
http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/ipc/Server.java?rev=661540&r1=661539&r2=661540&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/ipc/Server.java (original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/ipc/Server.java Thu May 29
17:49:49 2008
@@ -165,7 +165,10 @@
try {
socket.bind(address, backlog);
} catch (BindException e) {
- throw new BindException("Problem binding to " + address);
+ BindException bindException = new BindException("Problem binding to " +
address
+ + " : " +
e.getMessage());
+ bindException.initCause(e);
+ throw bindException;
} catch (SocketException e) {
// If they try to bind to a different host's address, give a better
// error message.