Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2918

Clean up topology background thread logic

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.15.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      The topology runs a background thread that does server discovery and monitoring.  The startup-shutdown logic of this thread is messy.  We should:

      • either assert that we are only ever RUNNING when we enter this method, or allow us to be OFF as well, and just assert that we are not in SHUTDOWN
      • add new tests for topology scanner thread startup-shutdown

            Assignee:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Reporter:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: