[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: |
|
||||||||||||
| 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:
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: |