-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Context
SBE is the intended primary local executor for collection-level update-lookup streams (flag on). SBE
support has not landed yet and is contingent on the SBE feasibility go/no-go, so this ticket is
future — blocked until the SBE executor and the collection-level factory switch exist. The
fall-through SBE can trigger (kNotHandled -> Aggregation) is verified separately in the sharded
fall-through ticket.
Scope
- Add the updateLookupSbeStats accessor (registers the cell — not in the infrastructure ticket).
- Add the recorder constructor parameter and the record* calls in SbeSingleDocumentLookupExecutor.performLookup.
- The collection-level updateLookup factory injects the updateLookupSbeStats cell.
- planBuilds-per-cursor stays a feasibility-branch diagnostic — do NOT ship a serverStatus metric.
- Pre-image-on-SBE is a separate path; its addPreImage recorder wiring is the pre-image telemetry ticket, not this one.
Acceptance
A collection-level stream with updates increments changeStreams.updateLookup.sbe.found / notFound + latency.
Tests
Extend the shared metrics jstest with the (flag on, collection) branch: when the flag is on and
changeStreamPassthroughType() is kCollection, expect the sbe cell. No new file.
Dependencies
Depends on the metrics infrastructure ticket, the SBE executor and the collection-level factory switch
(not yet built), and the Aggregation wiring ticket (shares the jstest). Future — blocked until SBE
lands, contingent on the SBE feasibility go/no-go.