-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Replication
-
Replication
-
Fully Compatible
-
Repl 2026-11-23
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
dbhash's opt-in rid hashing (includeReplicatedRecordIds) currently keys on the per-collection recordIdsReplicated option. When the caller opts in with that flag, re-key the predicate to the shared in-scope predicate, so the
cross-node rid-match oracle actually includes rids once the per-collection option stops being written.
Details
- Without this, the opt-in predicate matches zero collections under the set-wide feature.
- This changes only the opt-in path: default dbhash (without includeReplicatedRecordIds) is byte-identical to today.
- dbhash itself does not gate on membership and its response format does not change: an out-of-group node still produces the rid-inclusive hash when opted in. Whether two hashes are comparable is decided by the comparing tool, which reads each node's participation status from hello/replSetGetStatus and compares rid-inclusive hashes only between nodes whose groupIds match.
Acceptance criteria
- With includeReplicatedRecordIds, dbhash hashes rids for all in-scope collections regardless of the legacy option.
- Default dbhash (no opt-in) is unchanged.
- The dbhash response format is unchanged.
- depends on
-
SERVER-138123 Add the shared in-scope predicate for set-wide Replicated RecordIds
-
- Closed
-
- is depended on by
-
SERVER-138127 Re-enable rid-sensitive dbHash checks in test fixtures with groupId-membership-aware opt-in
-
- Open
-
- related to
-
SERVER-138242 Retire the per-collection recordIdsReplicated option
-
- Open
-