[SERVER-80753] Modify runCheckOnReplSet to call isMaster on admin Created: 05/Sep/23  Updated: 29/Oct/23  Resolved: 28/Sep/23

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

Type: Task Priority: Major - P3
Reporter: Hugh Tong (Inactive) Assignee: Hugh Tong (Inactive)
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-73113 Allow only specific global dbs to be ... Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-10-02
Participants:

 Description   

run_check_repl_oplog.js is a hook called from resmoke with a function runCheckOnReplSet that calls db.isMaster().  In a serverless environment, if the featureFlagRequireTenantID is set we need a tenantId to pass into the command (if not issued against admin, local, or config), and we should either use $tenant or be creating a security token connection in order to query with a tenantId.



 Comments   
Comment by Githook User [ 27/Sep/23 ]

Author:

{'name': 'Hugh Tong', 'email': 'hugh.tong@mongodb.com', 'username': 'cortrain'}

Message: SERVER-80753 Modify runCheckOnReplSet to call isMaster on admin
Branch: master
https://github.com/mongodb/mongo/commit/6c67ed7d2a227e40daf43c5f80f30c58fbea9a73

Comment by Hugh Tong (Inactive) [ 25/Sep/23 ]

Using security tokens appears to be too heavyweight and is causing timeouts in many tests.  I propose perhaps to issue the 'isMaster' command against admin instead, since I don't think the command (which is processed by 'hello') needs to be tenant-specific.

Generated at Thu Feb 08 06:44:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.