-
Type: Sub-task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
Use Case
As a... Node.js engineer
I want... reliably run a single command
So that... my expectations about a CSOT timeout are consistent
While working on testing the maxTimeMS change for commands there is an inconsistency where the tests don't reflect reality leading to inconsistent timeouts. The tests connect a MongoClient with an internal setting that skips the initial ping, in practice this behavior isn't the same for folks who've set a timeoutMS option in their URI (as the tests do) and call connect.
User Impact
- None
Dependencies
- Execute operation loop refactor merged to main
Unknowns
- None
Acceptance Criteria
Implementation Requirements
- Move topology.connect() logic into selectServer() when the topology hasn't been initialized yet.
- Move ping when credentials exist step into client.connect()
- Remove auto-connect logic from execute operation
- Remove connect from unified test runner
Testing Requirements
- Existing tests
Documentation Requirements
- None
Follow Up Requirements
- None
- duplicates
-
NODE-6223 Document the lack of CSOT support MongoClient.connect and auto-connect
- Closed