Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67657

Change mongod commands that override CommandInvocation to use tenantId in request

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2022-07-25, Server Serverless 2022-08-08, Server Serverless 2022-08-22

      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.

            Assignee:
            fernando.lisboa@mongodb.com Fernando Lisboa (Inactive)
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: