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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.1
    • 1.0
    • Feature Request
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: