Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-200

Connecting to a replica set with slaveOk=true should return as soon as primary is found

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1
    • Affects Version/s: 1.0
    • Component/s: Feature Request
    • Labels:
      None

      When connecting to a replica set with slaveOk=true the C# driver currently waits for responses from all servers before returning. This can cause a long delay if any of the secondaries is off line or responding slowly. Instead, Connect should return as soon as the primary is found. At that point it may or may not know about any of the secondaries yet. As further responses from other secondaries come in they should be added to the list of known secondaries.

      This is not a problem with slaveOk=false, as in that case it is already returning as soon as the primary is found.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: