Browse Source

HADOOP-2492. Additional debugging in the rpc server to better
diagnose ConcurrentModificationException. (dhruba)



git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@607892 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur 17 years ago
parent
commit
0e2ec5def9
2 changed files with 9 additions and 3 deletions
  1. 3 0
      CHANGES.txt
  2. 6 3
      src/java/org/apache/hadoop/ipc/Server.java

+ 3 - 0
CHANGES.txt

@@ -303,6 +303,9 @@ Trunk (unreleased changes)
     HADOOP-2452. Fix eclipse plug-in build.xml to refers to the right
     location where hadoop-*-core.jar is generated. (taton)
 
+    HADOOP-2492. Additional debugging in the rpc server to better 
+    diagnose ConcurrentModificationException. (dhruba)
+
 Release 0.15.2 - 2008-01-02
 
   BUG FIXES

+ 6 - 3
src/java/org/apache/hadoop/ipc/Server.java

@@ -505,7 +505,8 @@ public abstract class Server {
           LOG.warn("Out of Memory in server select", e);
           try { Thread.sleep(60000); } catch (Exception ie) {}
         } catch (Exception e) {
-          LOG.warn("Exception in Responder " + e);
+          LOG.warn("Exception in Responder " + 
+                   StringUtils.stringifyException(e));
         }
       }
       LOG.info("Stopping " + this.getName());
@@ -912,10 +913,12 @@ public abstract class Server {
           responder.doRespond(call);
         } catch (InterruptedException e) {
           if (running) {                          // unexpected -- log it
-            LOG.info(getName() + " caught: " + e, e);
+            LOG.info(getName() + " caught: " +
+                     StringUtils.stringifyException(e));
           }
         } catch (Exception e) {
-          LOG.info(getName() + " caught: " + e, e);
+          LOG.info(getName() + " caught: " +
+                   StringUtils.stringifyException(e));
         }
       }
       LOG.info(getName() + ": exiting");