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

Heartbeats should speed up to minHeartbeatFrequencyMS whenever any SelectServerAsync loop is waiting for a suitable server

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.0
    • None
    • Connectivity
    • None

    Description

      When SelectServerAsync does not find a suitable server, it triggers an early heartbeat to accelerate detection of topology changes that might result in a suitable server becoming available.

      Heartbeats should occur at two frequencies:

      1. heartbeatFrequencyMS: a slower heartbeat when everything is operating normally
      2. minHeartbeatFrequencyMS: a faster heartbeat whenever some task was unable to find a suitable server and is waiting to see if a topology change results in a suitable server becoming available

      But even when there are tasks waiting for a suitable server to appear, heartbeats must not be sent more frequently than minHeartbeatFrequencyMS.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: