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

Selecting servers by ReadPreference.nearest does not work

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.3, 2.2.36
    • Affects Version/s: 2.2.34, 3.0.11, 3.1.1
    • Component/s: Core
    • None

      Due to a very small bug in the pickNearest methods, the list of servers is being sorted randomly instead of by lastIsMasterMS resulting in the driver not selecting the nearest servers.

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: