[CDRIVER-2918] Clean up topology background thread logic Created: 04/Jan/19  Updated: 28/Oct/23  Resolved: 15/Jan/19

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.15.0

Type: Improvement Priority: Minor - P4
Reporter: Samantha Ritter (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-2857 Provide a reset method to be called o... Closed
Backwards Compatibility: Fully Compatible

 Description   

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


 Comments   
Comment by Githook User [ 15/Jan/19 ]

Author:

{'username': 'samantharitter', 'email': 'samantha.ritter@10gen.com', 'name': 'samantharitter'}

Message: CDRIVER-2918 clean up and test topology background thread logic
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/7f32dd419be2b8a37d7f7f5268c4b35a3542f05c

Generated at Wed Feb 07 21:16:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.