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

Serialize the command responses for collStats correctly in a multitenant env

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Server Serverless 2022-12-12

      The collStats command does not have an IDL defined reply type, so we can use NamespaceStringUtil::serialize to serialize the namespace correctly in the response here and here (the second place special cases appending stats for a timeseries collection).

      Let's add tests to native_tenant_data_isolaton_basic_security_token.js that run collStats both on a standard collection and on a timeseries collection (an example of how to create a timeseries collection is here). We can use the "checkNsSerializedCorrectly()" function defined in the test to check the namespaces are serialized correctly.

            Assignee:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: