From c991beac64a6ae09471c64720c96ab8042591640 Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Tue, 26 Apr 2016 11:46:46 -0500 Subject: [PATCH] HDFS-10329. Bad initialisation of StringBuffer in RequestHedgingProxyProvider. Contributed by Lin Yiqun. (cherry picked from commit c6a2430b47692a72c500373d6fc1bce78652675b) --- .../hdfs/server/namenode/ha/RequestHedgingProxyProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/RequestHedgingProxyProvider.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/RequestHedgingProxyProvider.java index f4d2c6b8d49..d8a516e13ea 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/RequestHedgingProxyProvider.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/RequestHedgingProxyProvider.java @@ -164,7 +164,7 @@ public class RequestHedgingProxyProvider extends return successfulProxy; } Map> targetProxyInfos = new HashMap<>(); - StringBuilder combinedInfo = new StringBuilder('['); + StringBuilder combinedInfo = new StringBuilder("["); for (int i = 0; i < proxies.size(); i++) { ProxyInfo pInfo = super.getProxy(); incrementProxyIndex();