hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-16969 RegionCoprocessorServiceExec should override the toString() for debugging (ChiaPing Tsai)
Date Mon, 31 Oct 2016 21:37:57 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 ea5b0a05d -> a969f8d79


HBASE-16969 RegionCoprocessorServiceExec should override the toString() for debugging (ChiaPing
Tsai)


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

Branch: refs/heads/branch-1
Commit: a969f8d7903d07ca1f6672db4b2a739c227e70a0
Parents: ea5b0a0
Author: Michael Stack <stack@apache.org>
Authored: Mon Oct 31 14:37:51 2016 -0700
Committer: Michael Stack <stack@apache.org>
Committed: Mon Oct 31 14:37:51 2016 -0700

----------------------------------------------------------------------
 .../hbase/client/RegionCoprocessorServiceExec.java    | 14 ++++++++++++++
 .../apache/hadoop/hbase/CoordinatedStateManager.java  |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a969f8d7/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionCoprocessorServiceExec.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionCoprocessorServiceExec.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionCoprocessorServiceExec.java
index 2d62332..cd4716e 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionCoprocessorServiceExec.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionCoprocessorServiceExec.java
@@ -101,4 +101,18 @@ public class RegionCoprocessorServiceExec implements Row {
     Row other = (Row) obj;
     return compareTo(other) == 0;
   }
+
+  @Override
+  public String toString() {
+    StringBuilder builder = new StringBuilder();
+    builder.append("region:")
+           .append(Bytes.toStringBinary(region))
+           .append(", startKey:")
+           .append(Bytes.toStringBinary(startKey))
+           .append(", method:")
+           .append(method.getFullName())
+           .append(", request:")
+           .append(request);
+    return builder.toString();
+  }
 }

http://git-wip-us.apache.org/repos/asf/hbase/blob/a969f8d7/hbase-server/src/main/java/org/apache/hadoop/hbase/CoordinatedStateManager.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/CoordinatedStateManager.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/CoordinatedStateManager.java
index b7bfa75..bdb202d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/CoordinatedStateManager.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/CoordinatedStateManager.java
@@ -20,7 +20,7 @@ package org.apache.hadoop.hbase;
 import org.apache.hadoop.hbase.classification.InterfaceAudience;
 
 /**
- * Implementations of this interface will keep and return to clients 
+ * Implementations of this interface will keep and return to clients
  * implementations of classes providing API to execute
  * coordinated operations. This interface is client-side, so it does NOT
  * include methods to retrieve the particular interface implementations.


Mime
View raw message