Commit Graph

15 Commits

Author SHA1 Message Date
mongodb-drivers-pr-bot[bot]
130067799c
[Spec Resync] 12-22-2025 (#2663)
Co-authored-by: Cloud User <ec2-user@ip-10-128-23-103.ec2.internal>
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
2025-12-23 09:59:06 -06:00
Steven Silvester
58a41ae7f5
PYTHON-4020 Drivers should unpin connections when ending a session (#2239) 2025-03-28 15:31:56 -05:00
Steven Silvester
f69e1f6f04
PYTHON-5184 Revert skip to non-lb-connection-establishment (#2185) 2025-03-06 16:53:47 -06:00
Kevin Albertson
5456f1ec04
PYTHON-5142 Sync non-lb-connection-establishment test (#2150) 2025-02-19 15:22:28 -05:00
Shane Harvey
0a578b4452
PYTHON-4396 Unskip failCommand+appName tests on MongoDB 4.4.7+ (#1735) 2024-08-08 11:26:25 -07:00
Shane Harvey
968ee7ba96
PYTHON-2868 Test Serverless behind a load balancer (#742) 2021-09-23 15:57:57 -07:00
Shane Harvey
67ebd5cab4 PYTHON-2762 Remove duplicate unified sessions test 2021-06-25 16:24:30 -07:00
Shane Harvey
b4b7a07b81
PYTHON-2762 Avoid duplicating unified test files for LB testing (#649)
Create new client for each cursor/session __del__ test.
Always close cursors in spec tests.
2021-06-25 16:20:21 -07:00
Shane Harvey
14160aed04
PYTHON-2767 Support snapshot reads on secondaries (#656)
Add the MongoClient.start_session snapshot option.
2021-06-25 16:12:12 -07:00
Shane Harvey
4c77d7c855
PYTHON-2677 Better wait queue timeout errors for load balanced clusters (#639)
Remove checkout argument in favor of SocketInfo.pin_txn/pin_cursor()
2021-06-21 18:29:36 -07:00
Prashant Mital
59dc6d8ca0
PYTHON-2718 Test redaction of security sensitive command monitoring events (#637) 2021-06-21 18:07:28 -07:00
Shane Harvey
bf78a9b2ef
PYTHON-2744 Run LB tests against non-LB clusters (#638)
Fix serviceId fallback to make spec test pass.
Fix socket leak when SocketInfo connection handshake fails.
2021-06-15 14:30:01 -07:00
Shane Harvey
c8f32a7a37 PYTHON-2673 Connection pinning behavior for load balanced clusters (#630)
Tweak spec test because pymongo unpins cursors eagerly after errors.
Tweak spec test for PoolClearedEvent ordering when MongoDB handshake fails (see DRIVERS-1785).
Only skip killCursors for some error codes.
Rely on SDAM error handling to close the connection after a state change error.
Add service_id to various events.
Retain reference to pinned sockets to prevent premptive closure by CPython's cyclic GC.
2021-06-15 14:14:56 -07:00
Shane Harvey
7a48831124 PYTHON-2673 Add load balancer connection pinning spec tests 2021-06-15 14:12:28 -07:00
Shane Harvey
93ac5e0277
PYTHON-2676 Add load balancer tests in EVG (#625)
Add load balancer spec tests
Ensure LB supports retryable reads/writes
Add assertNumberConnectionsCheckedOut, createFindCursor, ignoreResultAndError
Add PoolClearedEvent.service_id and fix isClientError unified test assertion
2021-05-27 15:05:26 -07:00