Browse Source

HADOOP-8263. Stringification of IPC calls not useful. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1311543 13f79535-47bb-0310-9956-ffa450edef68
Todd Lipcon 13 years ago
parent
commit
4b0d4d54d9

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

@@ -338,6 +338,8 @@ Release 2.0.0 - UNRELEASED
     HADOOP-8261. Har file system doesn't deal with FS URIs with a host but no
     port. (atm)
 
+    HADOOP-8263. Stringification of IPC calls not useful (todd)
+
   BREAKDOWN OF HADOOP-7454 SUBTASKS
 
     HADOOP-7455. HA: Introduce HA Service Protocol Interface. (suresh)

+ 6 - 0
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/ProtobufRpcEngine.java

@@ -268,6 +268,12 @@ public class ProtobufRpcEngine implements RpcEngine {
       in.readFully(bytes);
       message = HadoopRpcRequestProto.parseFrom(bytes);
     }
+    
+    @Override
+    public String toString() {
+      return message.getDeclaringClassProtocolName() + "." +
+          message.getMethodName();
+    }
   }
 
   /**