HBASE-18470 Remove the redundant comma from RetriesExhaustedWithDetailsException#getDesc
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
9fb3d65cbb
commit
3666618e71
|
@ -114,10 +114,10 @@ extends RetriesExhaustedException {
|
||||||
Set<String> uniqAddr = new HashSet<String>();
|
Set<String> uniqAddr = new HashSet<String>();
|
||||||
uniqAddr.addAll(hostnamePort);
|
uniqAddr.addAll(hostnamePort);
|
||||||
|
|
||||||
for(String addr : uniqAddr) {
|
for (String addr : uniqAddr) {
|
||||||
addrs.append(addr).append(", ");
|
addrs.append(addr).append(", ");
|
||||||
}
|
}
|
||||||
return addrs.toString();
|
return uniqAddr.isEmpty() ? addrs.toString() : addrs.substring(0, addrs.length() - 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getExhaustiveDescription() {
|
public String getExhaustiveDescription() {
|
||||||
|
|
Loading…
Reference in New Issue