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

Serialize the command responses for collStats correctly in a multitenant env

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Server Serverless 2022-12-12

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: