nearest server is not selected when useUnifiedTopology is set

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 3.4.0
    • Affects Version/s: 3.3.5
    • Component/s: Native
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Version 3.3.5 of mongodb driver does not select nearest mongodb server when readPreference is set to "nearest" and useUnifiedTopology is true.

      Each query randomly chooses server from list of available servers regardless of its roundrip time. For example, my servers have roundtrip times of 10 ms, 160 ms and 190 ms and all of them gets selected randomly for query.

      When useUnifiedTopology is set to false, everything works fine and nearest server with lowest latency is automatically selected.

            Assignee:
            Matt Broadstone
            Reporter:
            Aditya Patadia
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: