hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r832250 - in /hadoop/common/branches/branch-0.21: CHANGES.txt src/java/org/apache/hadoop/ipc/RPC.java
Date Tue, 03 Nov 2009 01:30:30 GMT
Author: szetszwo
Date: Tue Nov  3 01:30:29 2009
New Revision: 832250

URL: http://svn.apache.org/viewvc?rev=832250&view=rev
Log:
HADOOP-6343. Log unexpected throwable object caught in RPC.  Contributed by Jitendra Nath
Pandey

Modified:
    hadoop/common/branches/branch-0.21/CHANGES.txt
    hadoop/common/branches/branch-0.21/src/java/org/apache/hadoop/ipc/RPC.java

Modified: hadoop/common/branches/branch-0.21/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.21/CHANGES.txt?rev=832250&r1=832249&r2=832250&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.21/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.21/CHANGES.txt Tue Nov  3 01:30:29 2009
@@ -607,6 +607,9 @@
     HADOOP-5107. Use Maven ant tasks to publish the subproject jars.
     (Giridharan Kesavan via omalley)
 
+    HADOOP-6343. Log unexpected throwable object caught in RPC.  (Jitendra Nath
+    Pandey via szetszwo)
+
   OPTIMIZATIONS
 
     HADOOP-5595. NameNode does not need to run a replicator to choose a

Modified: hadoop/common/branches/branch-0.21/src/java/org/apache/hadoop/ipc/RPC.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.21/src/java/org/apache/hadoop/ipc/RPC.java?rev=832250&r1=832249&r2=832250&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.21/src/java/org/apache/hadoop/ipc/RPC.java (original)
+++ hadoop/common/branches/branch-0.21/src/java/org/apache/hadoop/ipc/RPC.java Tue Nov  3
01:30:29 2009
@@ -553,6 +553,9 @@
           throw ioe;
         }
       } catch (Throwable e) {
+        if (!(e instanceof IOException)) {
+          LOG.error("Unexpected throwable object ", e);
+        }
         IOException ioe = new IOException(e.toString());
         ioe.setStackTrace(e.getStackTrace());
         throw ioe;



Mime
View raw message