HDFS-10329. Bad initialisation of StringBuffer in RequestHedgingProxyProvider. Contributed by Lin Yiqun.

This commit is contained in:
Kihwal Lee 2016-04-26 11:45:29 -05:00
parent 1a3f1482e2
commit c6a2430b47
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ public class RequestHedgingProxyProvider<T> extends
return successfulProxy; return successfulProxy;
} }
Map<String, ProxyInfo<T>> targetProxyInfos = new HashMap<>(); Map<String, ProxyInfo<T>> targetProxyInfos = new HashMap<>();
StringBuilder combinedInfo = new StringBuilder('['); StringBuilder combinedInfo = new StringBuilder("[");
for (int i = 0; i < proxies.size(); i++) { for (int i = 0; i < proxies.size(); i++) {
ProxyInfo<T> pInfo = super.getProxy(); ProxyInfo<T> pInfo = super.getProxy();
incrementProxyIndex(); incrementProxyIndex();