Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
On line 167 of RequestHedgingProxyProvider.java, a StringBuilder is initialised like this:
StringBuilder combinedInfo = new StringBuilder('[');
This won't have the (presumably) desired effect of creating a StringBuilder containing the string "["; instead, it will create a StringBuilder with capacity 91 (the character code of '['). See here for an explanation.
To fix this, pass a string literal instead of the character literal:
StringBuilder combinedInfo = new StringBuilder("[");
Attachments
Attachments
Issue Links
- is related to
-
HDFS-7858 Improve HA Namenode Failover detection on the client
- Resolved