[GODRIVER-2123] Use an administrative Client in test runners Created: 10/Aug/21  Updated: 13/Jul/23

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

Type: Improvement Priority: Minor - P4
Reporter: Benji Rewis (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: greenerbuild
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to GODRIVER-2874 Initial connection handshake does not... Closed
related to GODRIVER-2585 Add log messages to SDAM spec Closed

 Description   

Both unified test runners currently use a single client for administrative actions (creating initial colllections, tearing down failpoints, etc.) and actual test operations. Ideally, these administrative actions would be done through a separate client that was unaffected by client options set in the test file (such as socketTimeoutMS or serverSelectionTimeoutMS). At the moment, we have to skip two SDAM tests that setup a failpoint and use a socket or server selection timeout since the failpoint teardown often times out.

Consider using a global client for setup/teardown of tests. This would add global state to the test runner but may be useful. You may also need some retryability wrapper in mtest for these administrative ops, as state changes in non-standalone clusters can result in NotPrimary errors.



 Comments   
Comment by Preston Vasquez [ 13/Jul/23 ]

It may be the case that the decreased heartbeat frequency from GODRIVER-2585 will resolve the tests that are ignored in favor of adding an administrative client. Should retest these cases once 2585 is merged.

Comment by Preston Vasquez [ 22/Jun/23 ]

Unified spec tests already typically have a setupClient entity. Why does this not suffice? Perhaps implementing the optional heartbeatFrequencyMS when configuring fail points will resolve this issue, here is the documentation: https://github.com/mongodb/specifications/blob/master/source/unified-test-format/unified-test-format.rst#executing-a-test

Generated at Thu Feb 08 08:37:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.