[SERVER-61794] Upgrade resmoke's pymongo to 4.2.0 Created: 30/Nov/21  Updated: 29/Oct/23  Resolved: 13/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Trevor Guidry
Resolution: Fixed Votes: 0
Labels: neweng, tig-qwin-eligible
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-71982 Add directConnection=True to standalo... Closed
depends on SERVER-71983 Add directConnection=True to standalo... Closed
depends on SERVER-71984 [6.0] add directConnection=True to st... Closed
is depended on by SERVER-71407 Use pymongo.timeout() for tooling met... Closed
Duplicate
is duplicated by SERVER-70541 Upgrade pymongo to 4.2.0 Closed
Problem/Incident
causes SERVER-72412 Add direct connection to powercycle t... Closed
Related
related to SERVER-70541 Upgrade pymongo to 4.2.0 Closed
is related to SERVER-61791 pin pymongo Closed
is related to PYTHON-3027 Connecting to a replica set member in... Closed
Backwards Compatibility: Fully Compatible
Sprint: DAG 2022-06-13
Participants:
Linked BF Score: 166
Story Points: 1

 Description   

From Max on Slack:

diff --git a/buildscripts/resmokelib/testing/fixtures/standalone.py b/buildscripts/resmokelib/testing/fixtures/standalone.py
index 111fbce6990..2a4dee6b5af 100644
--- a/buildscripts/resmokelib/testing/fixtures/standalone.py
+++ b/buildscripts/resmokelib/testing/fixtures/standalone.py
@@ -168,7 +168,7 @@ class MongoDFixture(interface.Fixture):
 
     def get_driver_connection_url(self):
         """Return the driver connection URL."""
-        return "mongodb://" + self.get_internal_connection_string()
+        return "mongodb://" + self.get_internal_connection_string() + "/?directConnection=true"
 
 
 # The below parameters define the default 'logComponentVerbosity' object passed to mongod processes



 Comments   
Comment by Githook User [ 13/Dec/22 ]

Author:

{'name': 'Trevor Guidry', 'email': 'trevor.guidry@mongodb.com'}

Message: SERVER-61794 update pymongo to 4.3.3
Branch: master
https://github.com/mongodb/mongo/commit/b4a126b43a7ebc4263a9fa06c123ee22f8af64cc

Comment by Matt Broadstone [ 23/May/22 ]

The authenticate and logout methods were deprecated in pymongo3 and have been removed in pymongo4. SERVER-65076 improved Fixture.mongo_client to accept kwargs, so that we can directly pass auth credentials to the MongoClient constructor.

Generated at Thu Feb 08 05:53:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.