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:
taiynlee 2018-06-19 08:42:47 +00:00 committed by Chia-Ping Tsai
parent 83969b0da1
commit 8aabe36a49
1 changed files with 1 additions and 2 deletions

View File

@ -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(", ");