Browse Source

HADOOP-6343. Log unexpected throwable object caught in RPC. Contributed by Jitendra Nath Pandey

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@832249 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 15 years ago
parent
commit
f5f95fe43a
2 changed files with 6 additions and 0 deletions
  1. 3 0
      CHANGES.txt
  2. 3 0
      src/java/org/apache/hadoop/ipc/RPC.java

+ 3 - 0
CHANGES.txt

@@ -639,6 +639,9 @@ Release 0.21.0 - Unreleased
     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

+ 3 - 0
src/java/org/apache/hadoop/ipc/RPC.java

@@ -553,6 +553,9 @@ public class RPC {
           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;