Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
In DefaultConfigProvider.seedHosts we shuffle the list of network addresses, but then we put them back into a HashSet which does not respect insertion order. In fact, the iteration order is often the same after shuffling and inserting into the new HashSet as it was in the original Set.
When shuffling, we should use a LinkedHashSet so that when iterating, items are returned in the shuffled order.
Attachments
For Gerrit Dashboard: JVMCBC-548 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
95504,2 | JVMCBC-548 Order not preserved when shuffling config provider seed hosts | master | couchbase-jvm-core | Status: MERGED | +2 | +1 |