Commit Graph

53 Commits

Author SHA1 Message Date
mongodb-drivers-pr-bot[bot]
64edd22d73
[Spec Resync] 04-20-2026 (#2766)
Co-authored-by: Cloud User <ec2-user@ip-10-128-20-182.ec2.internal>
Co-authored-by: Jeffrey 'Alex' Clark <aclark@aclark.net>
2026-04-27 15:56:10 -04:00
Noah Stapp
e1751ff253
PYTHON-5668 - Merge backpressure branch into mainline (#2729)
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
Co-authored-by: Shane Harvey <shnhrv@gmail.com>
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Albertson <kevin.albertson@mongodb.com>
Co-authored-by: Casey Clements <caseyclements@users.noreply.github.com>
Co-authored-by: Sergey Zelenov <mail@zelenov.su>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-14 12:25:29 -04:00
mongodb-drivers-pr-bot[bot]
e028fe2a38
[Spec Resync] 03-02-2026 (#2716)
Co-authored-by: Cloud User <ec2-user@ip-10-128-55-188.ec2.internal>
Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com>
2026-03-02 18:24:06 -08:00
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
Noah Stapp
e2bfa9a590
PYTHON-5248 - Drop support for MongoDB 4.0 (#2353) 2025-06-20 14:25:19 -04:00
Steven Silvester
4e5166b29a
PYTHON-3712 Deprecate sharded-replicaset topology type and clean up redundant runOnRequirements (#2232) 2025-03-26 17:39:10 -05:00
Shane Harvey
61d435408e
PYTHON-5194 Test secondary with IPv6 literal in SDAM (#2189) 2025-03-10 14:19:16 -07:00
Shane Harvey
de09181b1c
PYTHON-4960 More informative error message for stale primary (#2115) 2025-03-05 10:30:52 -08:00
Shane Harvey
0733c4da44
PYTHON-4925 Fix test bugs in $$matchAsDocument and $$matchAsRoot (#1988)
Fixes a bug where the driverConnectionId field was missing from "server heartbeat failed" log messages.
Avoids sending "upsert": False since various client.bulkWrite spec tests assume this field is only sent when it's True.
2024-11-05 12:19:51 -08:00
Shane Harvey
ac198af557
PYTHON-4729 Drop support for MongoDB 3.6 (#1905) 2024-10-09 09:58:20 -07:00
Shane Harvey
1eb3b8550e
PYTHON-4735 Resync SDAM tests to fix TestUnifiedLoggingLoadbalanced (#1839) 2024-09-06 10:20:29 -07:00
Noah Stapp
c6967ab139
PYTHON-3472 - Add log messages to SDAM spec (#1771)
Co-authored-by: Jib <Jibzade@gmail.com>
2024-08-28 14:48:49 -04:00
Steven Silvester
9d3b5033fa
PYTHON-3967 SDAM unit test sharded/too_new needs to defined wireVersions for host b (#1817) 2024-08-28 07:38:43 -05:00
Shane Harvey
8b44bc4bf3
PYTHON-4150 Resync spec tests to bump maxWireVersion (#1787) 2024-08-16 14:14:07 -07: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
a5d519775d
PYTHON-4605 Test serverMonitoringMode=poll waits after a successful heartbeat (#1767) 2024-08-05 12:26:06 -07:00
Noah Stapp
294f10b724
PYTHON-4021 - Publish TopologyDescriptionChangedEvent on topology close (#1762) 2024-08-02 09:42:49 -07:00
Noah Stapp
c4e4bd638f
PYTHON-3175 Preemptively cancel in progress operations when SDAM heartbeats timeout (#1465) 2024-01-19 10:55:10 -08:00
Shane Harvey
4c00227c1d
PYTHON-3668 Use polling SDAM mode on FaaS and add sdamMode=auto/stream/poll (#1360)
Disable streaming SDAM by default on AWS Lambda and similar FaaS platforms.
Introduce the serverMonitoringMode=stream/poll/auto URI option.
Add Unified Test Format version 1.17 to add support for server heartbeat events.
2023-10-12 13:19:16 -07:00
Shane Harvey
85f0987e1d PYTHON-3400 Only use new electionId/setVersion logic on 6.0+ 2022-10-05 13:02:15 -07:00
Shane Harvey
64d7d6da8a PYTHON-2970 Prioritize electionId over setVersion for stale primary check (#845) 2022-10-05 13:02:15 -07:00
Shane Harvey
13e2715af0
PYTHON-3312 Convert SDAM integration tests to unified (#1028) 2022-08-03 15:34:16 -07:00
Shane Harvey
a4bba9dd5c Revert "PYTHON-2970 Prioritize electionId over setVersion for stale primary check (#845)"
This reverts commit 225d131c2d.
2022-03-29 13:45:27 -07:00
Shane Harvey
225d131c2d
PYTHON-2970 Prioritize electionId over setVersion for stale primary check (#845) 2022-03-09 11:13:18 -08:00
Shane Harvey
5b8b09ac4f
PYTHON-3020 Properly mark server unknown after "not master" errors without a code (#797)
Fix prefer-error-code SDAM test.
2021-11-17 18:18:41 -08:00
Shane Harvey
09aef81b4a
DRIVERS-1864 Resync SDAM spec tests (#707) 2021-08-17 14:53:11 -07:00
Prashant Mital
b991185fd7
PYTHON-2715 Use hello command for monitoring when supported (#654) 2021-06-30 13:21:44 -07:00
Shane Harvey
a7921604f1
PYTHON-2768 Add SDAM and server selection spec tests for load balancers (#655) 2021-06-24 12:32:52 -07:00
Shane Harvey
2a74601572
PYTHON-2676 Unified Test Runner changes in preparation for Load Balancer Support (#623)
Resync crud, change stream, SDAM, server_selection, transactions, uri-options, tests.
PYTHON-2348 Correctly express lack of event assertions in change stream tests.
2021-05-18 10:20:36 -07:00
Shane Harvey
f64b563d9e
PYTHON-2629 Use hello command when API Version is declared (#610)
PYTHON-2697 Update CMAP runner to ignore extra events
2021-05-10 14:33:51 -07:00
Shane Harvey
de7c7b8be2
PYTHON-2544 Do not check error messages when an error code is present (#574)
Add 10058 as a "not master" error code to account for MongoDB<=3.2 errors.
2021-03-04 10:03:52 -08:00
Shane Harvey
20d5a9cf81
PYTHON-2543 Do not mark a server unknown from a "writeErrors" response (#570) 2021-03-01 14:09:27 -08:00
Prashant Mital
0743c0b222
PYTHON-2121 add directConnection URI option 2020-06-08 15:11:55 -07:00
Shane Harvey
1c2a575950 PYTHON-2221 Resync SDAM error handling spec tests 2020-05-04 15:03:16 -07:00
Shane Harvey
7099e1be8b PYTHON-2199 Reduce race conditions in SDAM error handling
Use Pool.generation and topologyVersion to reduce race conditions
SDAM error handling.
Implement SDAM error handling spec tests.
2020-04-28 16:47:13 -07:00
Shane Harvey
e989be53c1 PYTHON-2088 Define how multiple phases should be handled in SDAM spec runner 2020-02-24 16:32:09 -08:00
Bernie Hackett
02191a91ea PYTHON-1544 - Resync SDAM tests 2018-06-03 08:19:06 -07:00
Shane Harvey
47cab04f49 PYTHON-1407 Exclude non-data bearing servers when considering logicalSessionTimeoutMinutes 2017-11-14 09:35:05 -08:00
A. Jesse Jiryu Davis
14da1893ea PYTHON-1332 - Parse session timeout from ismaster
The field name isn't localLogicalSessionTImeoutMinutes, it's now
logicalSessionTimeoutMinutes.
2017-09-01 15:22:38 -04:00
A. Jesse Jiryu Davis
aa03551725 PYTHON-1299 - Drop MongoDB 2.4
Bump minimum supported wire version to 2 and sync SDAM tests from specs
repo. Don't remove actual wire protocol code yet or remove 2.4 version
checks from test code.
2017-08-24 08:14:36 -04:00
A. Jesse Jiryu Davis
ece1321dbb Resync JSON tests from specs repo 2017-08-23 21:55:46 -04:00
A. Jesse Jiryu Davis
cbe3e3b9ab PYTHON-1349 - Read session timeout from isMaster 2017-08-23 21:55:46 -04:00
A. Jesse Jiryu Davis
4ee8b0aade Resync SDAM test files 2017-08-23 21:55:46 -04:00
A. Jesse Jiryu Davis
13364a28fb Sync "secondary with mismatched me" spec test 2017-08-23 21:55:46 -04:00
A. Jesse Jiryu Davis
b3b8114779 Update SDAM tests from Specs repo. 2016-09-27 13:59:44 -04:00
A. Jesse Jiryu Davis
c34eec8fad PYTHON-1036 use setVersion to detect stale primary 2015-12-23 17:22:43 -06:00
Luke Lovett
22c79ac0f6 PYTHON-999 - Update SDAM tests and fix related failures. 2015-10-07 11:55:35 -07:00
A. Jesse Jiryu Davis
bbff9ff015 Add new SDAM test, stepdown_change_set_name. 2015-07-14 22:10:01 -04:00
A. Jesse Jiryu Davis
3d1c20669c PYTHON-924 - Use electionId to detect stale primaries. 2015-05-11 12:17:59 -04:00
A. Jesse Jiryu Davis
8ececbb1de Don't remove a mongos on disconnect. 2015-03-08 08:24:43 -04:00