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

Reimplement SDAM to follow the spec more closely

    • Type: Icon: Epic Epic
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Connectivity
    • Labels:
    • Hide
      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?
      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      The current implementation of heartbeats uses async code. It was also written before the SDAM spec was written.

      The code would be simpler if it used a dedicated thread and sync calls. A dedicated thread would also protect the SDAM code from being starved from running when an application misuses Tasks in a way that interferes with the SDAM Tasks from getting a chance to run.

      The SDAM code should be completely re-implemented to:

      1. Follow the SDAM spec more closely which would involve using the same names and logic flow
      2. Use a dedicated thread and sync driver calls (not async code)

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

              Created:
              Updated:
              Resolved: