[CDRIVER-4145] Do not start background monitoring when topology is invalid Created: 01/Sep/21 Updated: 28/Oct/23 Resolved: 29/Sep/21 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.19.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | failing-on-waterfall | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Summary To reproduce To run it locally, start a local sharded cluster with TLS configured and two mongos processes on 27017 and 27018. Run the test with:
|
| Comments |
| Comment by Kevin Albertson [ 12/Oct/21 ] |
|
Thank you for catching. Setting the mongoc_apm_set_topology_closed_cb callback and rerunning the loadBalanced-replicaSet-errors test hit the same assertion. |
| Comment by Kaitlin Mahar [ 11/Oct/21 ] |
|
kevin.albertson, I've vendored this fix into the Swift driver and now see a crash coming from a different spot in the C driver when running this test against Swift: https://github.com/mongodb/mongo-c-driver/blob/b2e1ae0552e1853e981fd488e8ad5039292500ef/src/libmongoc/src/mongoc/mongoc-topology-description-apm.c#L183 |
| Comment by Githook User [ 29/Sep/21 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |
| Comment by Githook User [ 29/Sep/21 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |