-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
QE 2026-06-22
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Summary
Wire ChangeStreamUpdateLookupStage to perform its lookup through a SingleDocumentLookupExecutor whose chain is Aggregation-only. Behaviour-preserving; no feature flag. This puts the stage on the executor seam so that Express/SBE primaries can later be slotted in behind the feature flag.
Scope
- ChangeStreamUpdateLookupStage constructs and drives a PrimaryWithFallback chain whose only member is the AggregationSingleDocumentLookupExecutor (no primary strategy yet).
- Factory wiring in change_stream_add_post_image_stage_fn.cpp.
Files
- src/mongo/db/exec/agg/change_stream_update_lookup_stage.h / .cpp
- src/mongo/db/exec/agg/change_stream_add_post_image_stage_fn.cpp
Acceptance criteria
- Existing change_streams and passthrough suites stay green (output unchanged).
- Depends on the stage-split (
SERVER-128407), interface (SERVER-128408), and Aggregation-fallback (SERVER-128409) tickets.
- is related to
-
SERVER-128407 Split ChangeStreamAddPostImageStage into ChangeStreamUpdateLookupStage and a post-image-only stage
-
- Closed
-
-
SERVER-128408 Introduce SingleDocumentLookupExecutor interface and PrimaryWithFallback combinator
-
- Closed
-
-
SERVER-128409 Implement AggregationSingleDocumentLookupExecutor (routed fallback)
-
- Closed
-
- related to
-
SERVER-128414 Wire ExpressSingleDocumentLookupExecutor live behind featureFlagChangeStreamOptimizedUpdateLookup
-
- Closed
-