hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chia7...@apache.org
Subject hbase git commit: HBASE-18470 Remove the redundant comma from RetriesExhaustedWithDetailsException#getDesc
Date Thu, 03 Aug 2017 07:41:54 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 d79641dfe -> 5f617aae9


HBASE-18470 Remove the redundant comma from RetriesExhaustedWithDetailsException#getDesc

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


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

Branch: refs/heads/branch-1.3
Commit: 5f617aae9494692c8978440f422dd659f56e68eb
Parents: d79641d
Author: Benedict Jin <1571805553@qq.com>
Authored: Thu Aug 3 15:29:36 2017 +0800
Committer: Chia-Ping Tsai <chia7712@gmail.com>
Committed: Thu Aug 3 15:39: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/5f617aae/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() {


Mime
View raw message