From e4220a7149275e3fdcec841233fb267979730c78 Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Mon, 29 Jun 2026 09:42:55 -0400 Subject: [PATCH 1/2] PYTHON-5859 - Remove mention and link to IWM from the changelog --- doc/changelog.rst | 5 ++--- pymongo/asynchronous/mongo_client.py | 1 + pymongo/synchronous/mongo_client.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 585ea045c8..6bb0c520eb 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -21,9 +21,8 @@ PyMongo 4.17 brings a number of changes including: - Added the :meth:`~pymongo.asynchronous.client_session.AsyncClientSession.bind` and :meth:`~pymongo.client_session.ClientSession.bind` methods that allow users to bind a session to all database operations within the scope of a context manager instead of having to explicitly pass the session to each individual operation. See the `Transactions docs `_ for examples and more information. -- Added support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features. - The driver now gracefully handles write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability. - See the `IWM `_ or `Overload Errors `_ docs for more information. +- Added support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features in MongoDB Server Version 9.0. + The driver will gracefully handles write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability. Changes in Version 4.16.0 (2026/01/07) -------------------------------------- diff --git a/pymongo/asynchronous/mongo_client.py b/pymongo/asynchronous/mongo_client.py index 6aeea53f4c..74ab932f8a 100644 --- a/pymongo/asynchronous/mongo_client.py +++ b/pymongo/asynchronous/mongo_client.py @@ -609,6 +609,7 @@ def __init__( details. | **Overload retry options:** + | (These options have no effect on MongoDB Server Versions older than 9.0.) - `max_adaptive_retries`: (int) How many retries to allow for overload errors. Defaults to ``2``. - `enable_overload_retargeting`: (boolean) Whether overload retargeting is enabled for this client. diff --git a/pymongo/synchronous/mongo_client.py b/pymongo/synchronous/mongo_client.py index 6b7c5d9c98..941f536ec8 100644 --- a/pymongo/synchronous/mongo_client.py +++ b/pymongo/synchronous/mongo_client.py @@ -610,6 +610,7 @@ def __init__( details. | **Overload retry options:** + | (These options have no effect on MongoDB Server Versions older than 9.0.) - `max_adaptive_retries`: (int) How many retries to allow for overload errors. Defaults to ``2``. - `enable_overload_retargeting`: (boolean) Whether overload retargeting is enabled for this client. From ab81b9c69750a50b4dc95a437359ade57ebf2251 Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Mon, 29 Jun 2026 11:18:59 -0400 Subject: [PATCH 2/2] Cleanup formatting --- doc/changelog.rst | 4 ++-- pymongo/asynchronous/mongo_client.py | 2 +- pymongo/synchronous/mongo_client.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 6bb0c520eb..b3e1c75319 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -21,8 +21,8 @@ PyMongo 4.17 brings a number of changes including: - Added the :meth:`~pymongo.asynchronous.client_session.AsyncClientSession.bind` and :meth:`~pymongo.client_session.ClientSession.bind` methods that allow users to bind a session to all database operations within the scope of a context manager instead of having to explicitly pass the session to each individual operation. See the `Transactions docs `_ for examples and more information. -- Added support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features in MongoDB Server Version 9.0. - The driver will gracefully handles write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability. +- Added support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features in MongoDB server version 9.0. + The driver will gracefully handle write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability. Changes in Version 4.16.0 (2026/01/07) -------------------------------------- diff --git a/pymongo/asynchronous/mongo_client.py b/pymongo/asynchronous/mongo_client.py index 74ab932f8a..834831c4ef 100644 --- a/pymongo/asynchronous/mongo_client.py +++ b/pymongo/asynchronous/mongo_client.py @@ -609,7 +609,7 @@ def __init__( details. | **Overload retry options:** - | (These options have no effect on MongoDB Server Versions older than 9.0.) + | (Requires MongoDB server version 9.0+.) - `max_adaptive_retries`: (int) How many retries to allow for overload errors. Defaults to ``2``. - `enable_overload_retargeting`: (boolean) Whether overload retargeting is enabled for this client. diff --git a/pymongo/synchronous/mongo_client.py b/pymongo/synchronous/mongo_client.py index 941f536ec8..ac6974bbfa 100644 --- a/pymongo/synchronous/mongo_client.py +++ b/pymongo/synchronous/mongo_client.py @@ -610,7 +610,7 @@ def __init__( details. | **Overload retry options:** - | (These options have no effect on MongoDB Server Versions older than 9.0.) + | (Requires MongoDB server version 9.0+.) - `max_adaptive_retries`: (int) How many retries to allow for overload errors. Defaults to ``2``. - `enable_overload_retargeting`: (boolean) Whether overload retargeting is enabled for this client.