[SERVER-67657] Change mongod commands that override CommandInvocation to use tenantId in request Created: 29/Jun/22  Updated: 29/Oct/23  Resolved: 19/Aug/22

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

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Fernando Lisboa (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before SERVER-65950 Enable multi-tenancy support for the ... Closed
has to be done before SERVER-66643 Make pre-image collection multi-tenant Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-07-25, Server Serverless 2022-08-08, Server Serverless 2022-08-22
Participants:

 Description   

A number of commands override Command and CommandInvocation directly and parse the command objects themselves. Change these to use the tenantId present in the OpMsg when constructing the NamespaceString and/or DatabaseName the command is run on. The following are the commands referred to:

  • Find
  • Explain
  • GetMore
  • Pipeline

Most, if not all, of these have an IDL definition defined for the command. However, there's some extra logic around parsing - as part of this ticket, look into whether we can just convert any of the commands with an IDL definition to a TypedCommand and get rid of the special logic.



 Comments   
Comment by Githook User [ 17/Aug/22 ]

Author:

{'name': 'Fernando Lisboa', 'email': 'fernando.lisboa@mongodb.com', 'username': 'fernandolis10'}

Message: SERVER-67657 Change mongod commands that override CommandInvocation to use tenantId in request
Branch: master
https://github.com/mongodb/mongo/commit/665a2ceb3373d81a5887dc240ed66ee8350d27d8

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