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

Provide SerializationContext to serializer in Explain

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Server Serverless 2023-05-29

      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.

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

              Created:
              Updated:
              Resolved: