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

MongoClient::connect() fails if any member of seedlist is unavailable

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.3.2
    • Component/s: Core
    • Environment:
      Directly using NodeJS driver in Node v12.3.1

      Attempting to connect to a ReplicaSet using a seedlist with multiple members will fail if any of the members is unavailable at the time the connection is attempted, even if the ReplicaSet overall is perfectly functional.

      This seems to violate the spirit of the SDAM spec outlined here regarding I/O operations in the constructor. I realize this isn't a 'constructor' operation in the typical JS sense, but the ultimate effect of this implementation is essentially called out as undesirable behavior:

      When the deployment is passing through a strange state, long-running clients may keep working, but any clients restarted during this period fail.

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            brian@finbox.com Brian Dentino
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: