hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077413 - /hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/ipc/Client.java
Date Fri, 04 Mar 2011 04:12:22 GMT
Author: omalley
Date: Fri Mar  4 04:12:22 2011
New Revision: 1077413

URL: http://svn.apache.org/viewvc?rev=1077413&view=rev
Log:
commit cb1f11c692440eb566232f0f695ef73cc15fdc51
Author: Devaraj Das <ddas@yahoo-inc.com>
Date:   Mon Apr 19 18:43:20 2010 -0700

    HADOOP:6706 from https://issues.apache.org/jira/secure/attachment/12442253/6706.bp20.1.patch
    
    +++ b/YAHOO-CHANGES.txt
    +    HADOOP-6706. Fixes a bug in the earlier version of the same patch (ddas)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/ipc/Client.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/ipc/Client.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/ipc/Client.java?rev=1077413&r1=1077412&r2=1077413&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/ipc/Client.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/ipc/Client.java
Fri Mar  4 04:12:22 2011
@@ -393,9 +393,10 @@ public class Client {
             LOG.warn(msg);
             throw (IOException) new IOException(msg).initCause(ex);
           }
-        } 
-        throw (IOException)new IOException("Failed to connect to the server"
-        ).initCause(e);
+        }
+        if (e instanceof RemoteException) 
+          throw (RemoteException)e;
+        throw new IOException(e);
       }
     }
     /** Connect to the server and set up the I/O streams. It then sends



Mime
View raw message