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 A0FB0200CD9 for ; Thu, 3 Aug 2017 09:41:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9F52316B142; Thu, 3 Aug 2017 07:41:36 +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 E471616B13F for ; Thu, 3 Aug 2017 09:41:35 +0200 (CEST) Received: (qmail 42608 invoked by uid 500); 3 Aug 2017 07:41:35 -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 42599 invoked by uid 99); 3 Aug 2017 07:41:35 -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; Thu, 03 Aug 2017 07:41:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DE69DDFC28; Thu, 3 Aug 2017 07:41:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: chia7712@apache.org To: commits@hbase.apache.org Message-Id: <7d43696fae1847cf8749906ba35fd1d4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-18470 Remove the redundant comma from RetriesExhaustedWithDetailsException#getDesc Date: Thu, 3 Aug 2017 07:41:34 +0000 (UTC) archived-at: Thu, 03 Aug 2017 07:41:36 -0000 Repository: hbase Updated Branches: refs/heads/branch-1.4 2a0633f07 -> 6faab31e8 HBASE-18470 Remove the redundant comma from RetriesExhaustedWithDetailsException#getDesc Signed-off-by: Chia-Ping Tsai Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/6faab31e Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/6faab31e Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/6faab31e Branch: refs/heads/branch-1.4 Commit: 6faab31e893c851e0aa8bd7a5abf6243c5af672d Parents: 2a0633f Author: Benedict Jin <1571805553@qq.com> Authored: Thu Aug 3 15:29:36 2017 +0800 Committer: Chia-Ping Tsai Committed: Thu Aug 3 15:38:34 2017 +0800 ---------------------------------------------------------------------- .../hbase/client/RetriesExhaustedWithDetailsException.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/6faab31e/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.java ---------------------------------------------------------------------- diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.java index af71b9a..21ab156 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.java @@ -114,10 +114,10 @@ extends RetriesExhaustedException { Set uniqAddr = new HashSet(); uniqAddr.addAll(hostnamePort); - for(String addr : uniqAddr) { + for (String addr : uniqAddr) { addrs.append(addr).append(", "); } - return addrs.toString(); + return uniqAddr.isEmpty() ? addrs.toString() : addrs.substring(0, addrs.length() - 2); } public String getExhaustiveDescription() {