-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Execution
-
Fully Compatible
-
Storage Execution 2026-11-09, Storage Execution 2026-11-23
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Add the single shared predicate for "this collection replicates rids under the set-wide feature": explicitly replicated AND non-clustered, excluding implicitly replicated namespaces: config.transactions, config.image_collection, change stream pre-images).
Details
- One function used by every consumer: op observer rid emission, applier rid expectations, the initial sync cloner, dbhash's includeReplicatedRecordIds path, and restore tooling.
- Two traps this prevents: the session reaper's deletes on config.transactions/config.image_collection are replicated but carry no rid, so a check keyed on "replicated namespace" false-positives, and rid comparison between in-group nodes would report false divergence on exempt collections.
- Clustered collections are exempt because the rid is derived from _id (the applier already computes an effective rid for them).
Acceptance criteria
- Single helper with unit tests covering clustered, implicitly replicated, local, and plain replicated collections.
- Existing per-collection recordIdsReplicated call sites should we changed to use the helper.
- is depended on by
-
SERVER-138124 Membership-based recordId emission and honoring in the oplog path
-
- Open
-
-
SERVER-138231 Logical initial sync joins the RecordIds group
-
- Open
-
-
SERVER-138126 Re-key dbhash includeReplicatedRecordIds to the in-scope predicate
-
- In Code Review
-