[CSHARP-2583] Allow failPoints to disable "isMaster" failPoints Created: 10/Apr/19  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Vincent Kam (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently the `failPoint` helpers are unable to clear an "isMaster" failPoint.

Fortunately, this currently does not affect the tests.

In the case of a single mongos, the failpoint should be cleared when when the driver rapidly starts requesting heartbeats when subsequent tests run.

In the case of multiple mongoses, the other mongos will be selected, and heartbeats will slowly disable the the failpoint on the other mongos.

rstam's proposal that the failpoint helper seems reasonable: the failpoint helper should hang on to the channel instead of the server, that way it has a dedicated already-opened connection it can use to clear the failpoint.


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