Sfoglia il codice sorgente

Merge. HADOOP-10132. RPC#stopProxy() should log the class of proxy when IllegalArgumentException is encountered. Contributed by Ted Yu

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2.2@1546194 13f79535-47bb-0310-9956-ffa450edef68
Uma Maheswara Rao G 11 anni fa
parent
commit
3b69792f8d

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -17,6 +17,9 @@ Release 2.2.1 - UNRELEASED
     HADOOP-9623. Update jets3t dependency to 0.9.0 (Amandeep Khurana via Colin
     Patrick McCabe)
 
+    HADOOP-10132. RPC#stopProxy() should log the class of proxy when IllegalArgumentException 
+    is encountered (Ted yu via umamahesh)
+
   OPTIMIZATIONS
 
   BUG FIXES

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java

@@ -630,7 +630,7 @@ public class RPC {
     } catch (IOException e) {
       LOG.error("Closing proxy or invocation handler caused exception", e);
     } catch (IllegalArgumentException e) {
-      LOG.error("RPC.stopProxy called on non proxy.", e);
+      LOG.error("RPC.stopProxy called on non proxy: class=" + proxy.getClass().getName(), e);
     }
     
     // If you see this error on a mock object in a unit test you're