[CSHARP-4253] ConnectionPool_cleared_on_failed_hello test fails sporadically Created: 13/Jul/22  Updated: 28/Oct/23  Resolved: 14/Jul/22

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

Type: Bug Priority: Unknown
Reporter: James Kovacs Assignee: James Kovacs
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

This test started failing reproducibly on MacOS locally. I tracked this down to a race condition when setting the failpoints. Depending on timing the RTT thread can consume both configured failpoints before the monitoring thread is called thus failing the assertions. Increasing the heartbeat interval resolved the issue.



 Comments   
Comment by Githook User [ 14/Jul/22 ]

Author:

{'name': 'James Kovacs', 'email': 'jkovacs@post.harvard.edu', 'username': 'JamesKovacs'}

Message: CSHARP-4253: Increase heartbeatInterval in ConnectionPool_cleared_on_failed_hello test to avoid race condition between RTT and monitoring threads. (#848)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/0d720c8c9ac904b09bddbaf1a5df45cef76c0fcb

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