HBASE-20737 (addendum) put collection into ArrayList instead of addAll function -- RetriesExhaustedWithDetailsException.java
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
83969b0da1
commit
8aabe36a49
|
@ -117,8 +117,7 @@ extends RetriesExhaustedException {
|
||||||
String s = getDesc(classifyExs(exceptions));
|
String s = getDesc(classifyExs(exceptions));
|
||||||
StringBuilder addrs = new StringBuilder(s);
|
StringBuilder addrs = new StringBuilder(s);
|
||||||
addrs.append("servers with issues: ");
|
addrs.append("servers with issues: ");
|
||||||
Set<String> uniqAddr = new HashSet<>();
|
Set<String> uniqAddr = new HashSet<>(hostnamePort);
|
||||||
uniqAddr.addAll(hostnamePort);
|
|
||||||
|
|
||||||
for (String addr : uniqAddr) {
|
for (String addr : uniqAddr) {
|
||||||
addrs.append(addr).append(", ");
|
addrs.append(addr).append(", ");
|
||||||
|
|
Loading…
Reference in New Issue