Change mongod commands that override CommandInvocation to use tenantId in request

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
              Reporter:
              Janna Golden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: