-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Execution
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The includeReplicatedRecordIds opt-in in getHashesUsingSessions() was removed to let the groupId implementation land without mass fixture hash failures from legitimately divergent rid spaces. This ticket restores rid-sensitive hashing keyed on groupId membership instead of the per-collection catalog flag.
Semantics
rid inclusion in a node's dbHash output is a function of that node's membership: in-group nodes (persisted groupId non-null) hash in-scope collections with rid, out-of-group nodes hash document contents only. A single hash per node cannot serve both cross-membership and within-membership comparison, so the fixture uses up to two passes.
Change
In replsettest.js getHashesUsingSessions() and the comparison paths in checkReplicatedDataHashes and the background hook's comparison loop:
- Read each data-bearing node's persisted groupId and partition the nodes:
- All nodes in-group: single dbHash pass with includeReplicatedRecordIds: 1 on all nodes. Hashes must match. Catches both content and rid divergence atthe same cost as today.
- Mixed membership: two passes. Pass 1 without the option on all nodes, hashes must match (content equality across the whole set). Pass 2 with the option on the in-group nodes only, hashes must match within each distinct groupId (catches rid divergence among nodes claiming the same rid space).
- No nodes in-group: single pass without the option. Hashes must match.
Coverage note
Converged sets get full rid-sensitive coverage at the same cost as today. Conversion windows keep full content coverage across the whole set plus rid coverage among in-group nodes, at the price of a second hashing pass while mixed membership lasts.
- depends on
-
SERVER-138108 Expose RecordIds groupId membership in hello and replSetGetStatus
-
- Open
-
-
SERVER-138124 Membership-based recordId emission and honoring in the oplog path
-
- Open
-
-
SERVER-138126 Re-key dbhash includeReplicatedRecordIds to the in-scope predicate
-
- In Code Review
-
-
SERVER-139451 Restrict the fixture dbHash rid opt-in to disagg until groupId membership lands
-
- In Code Review
-
- is depended on by
-
SERVER-139449 Re-enable and rework replicate_record_ids_dbhash.js to groupId membership semantics
-
- Open
-