Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-548

Order not preserved when shuffling config provider seed hosts

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          There are no comments yet on this issue.

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty