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

(cherry picked from commit c6a2430b47692a72c500373d6fc1bce78652675b)
This commit is contained in:
Kihwal Lee 2016-04-26 11:47:15 -05:00
parent 973c73aa68
commit 621be60592

View File

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