Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2356

nearest server is not selected when useUnifiedTopology is set

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

      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@mongodb.com Matt Broadstone
            Reporter:
            aditya@patadia.org Aditya Patadia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: