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

Provide SerializationContext to serializer in Explain

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc3
    • None
    • None
    • Fully Compatible
    • Server Serverless 2023-05-29

    Description

      Commands with a query component provide the ability to convert a PlanExecutor to a query planner BSON obj. These commands call an Explain::explainStages() override, which calls the Explain::generatePlannerInfo() to create the query planner.  The query planner contains a 'namespace' field that requires calling the namespace string serializer.  We will want to pass SerializationContext objects down the stack to correctly set the serialization configuration when serializing in generatePlannerInfo().

      As the goal of these changes are in pursuit of fixing tests that will fail once serializeForCommands and deserializeForCommands are plumbed in, no new tests are being added for this ticket.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: