[CDRIVER-2298] /TopologyDescription/readable_writable/pooled test sometimes fails Created: 23/Sep/17  Updated: 28/Oct/23  Resolved: 25/Sep/17

Status: Closed
Project: C Driver
Component/s: libmongoc, tests
Affects Version/s: 1.5.0
Fix Version/s: 1.9.0

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
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-1144 Implement SDAM Monitoring spec Closed

 Description   

/TopologyDescription/readable_writable/pooled has a race condition: it creates a pool, pops a client (which has the side effect of beginning the background scanner thread), then asserts that there are no readable or writable servers in the topology description. This fails more often on POWER8, presumably due to scheduling differences there.



 Comments   
Comment by Githook User [ 26/Sep/17 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2298 race in topology description test

/TopologyDescription/readable_writable/pooled could fail if topology
discovered completed before the test asserted that there were no
writable servers.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8458f40cdc3e5a07337402ff2b44424921943588

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