hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject hbase git commit: HBASE-16708 Expose endpoint Coprocessor name in responseTooSlow log messages (Yi Liang)
Date Sun, 04 Dec 2016 22:27:42 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 1342b8ea9 -> 691af41d1


HBASE-16708 Expose endpoint Coprocessor name in responseTooSlow log messages (Yi Liang)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/691af41d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/691af41d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/691af41d

Branch: refs/heads/0.98
Commit: 691af41d1046482263fca6f67aa1418f6944858f
Parents: 1342b8e
Author: Jerry He <jerryjch@apache.org>
Authored: Fri Nov 18 11:09:55 2016 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Sun Dec 4 14:27:54 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java     | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/691af41d/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
index 927d5f6..db33d2f 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
@@ -2650,7 +2650,12 @@ public final class ProtobufUtil {
       ClientProtos.MutateRequest r = (ClientProtos.MutateRequest) m;
       return "region= " + getStringForByteString(r.getRegion().getValue()) +
           ", row=" + getStringForByteString(r.getMutation().getRow());
+    } else if (m instanceof ClientProtos.CoprocessorServiceRequest) {
+      ClientProtos.CoprocessorServiceRequest r = (ClientProtos.CoprocessorServiceRequest)
m;
+      return "coprocessorService= " + r.getCall().getServiceName() + ":" + r.getCall()
+          .getMethodName();
     }
+
     return "TODO: " + m.getClass().toString();
   }
 


Mime
View raw message