Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5BD62200BAF for ; Mon, 31 Oct 2016 22:37:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5A56E160B05; Mon, 31 Oct 2016 21:37:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A1590160AED for ; Mon, 31 Oct 2016 22:37:58 +0100 (CET) Received: (qmail 92496 invoked by uid 500); 31 Oct 2016 21:37:57 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 92483 invoked by uid 99); 31 Oct 2016 21:37:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2016 21:37:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6A6BAE93E5; Mon, 31 Oct 2016 21:37:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: stack@apache.org To: commits@hbase.apache.org Message-Id: <54a568a6efdb48e7b0298be0e3c60309@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-16969 RegionCoprocessorServiceExec should override the toString() for debugging (ChiaPing Tsai) Date: Mon, 31 Oct 2016 21:37:57 +0000 (UTC) archived-at: Mon, 31 Oct 2016 21:37:59 -0000 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 Authored: Mon Oct 31 14:37:51 2016 -0700 Committer: Michael Stack 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.