[SERVER-76677] Provide SerializationContext to serializer in Explain Created: 28/Apr/23  Updated: 29/Oct/23  Resolved: 25/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc3

Type: Task Priority: Major - P3
Reporter: Hugh Tong (Inactive) Assignee: Hugh Tong (Inactive)
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-76634 Add SerializationContext object to Ex... Closed
is depended on by SERVER-74284 Fix existing tests for command serial... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-05-29
Participants:

 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.



 Comments   
Comment by Githook User [ 23/May/23 ]

Author:

{'name': 'Hugh Tong', 'email': 'hugh.tong@mongodb.com', 'username': 'cortrain'}

Message: SERVER-76677 Provide SerializationContext to serializer in Explain
Branch: master
https://github.com/mongodb/mongo/commit/6812baaffbf126d319a5384ae3a7525a4336b7d7

Generated at Thu Feb 08 06:33:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.