You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ch...@apache.org on 2017/08/03 07:41:09 UTC

hbase git commit: HBASE-18470 Remove the redundant comma from RetriesExhaustedWithDetailsException#getDesc

Repository: hbase
Updated Branches:
  refs/heads/branch-1 9fb3d65cb -> 3666618e7


HBASE-18470 Remove the redundant comma from RetriesExhaustedWithDetailsException#getDesc

Signed-off-by: Chia-Ping Tsai <ch...@gmail.com>


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

Branch: refs/heads/branch-1
Commit: 3666618e712fdb0de927ced49893ab6f0181fc48
Parents: 9fb3d65
Author: Benedict Jin <15...@qq.com>
Authored: Thu Aug 3 15:29:36 2017 +0800
Committer: Chia-Ping Tsai <ch...@gmail.com>
Committed: Thu Aug 3 15:37:27 2017 +0800

----------------------------------------------------------------------
 .../hbase/client/RetriesExhaustedWithDetailsException.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3666618e/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<String> uniqAddr = new HashSet<String>();
     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() {