ExportXMLWordPrintableJSON

    • 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.

            Assignee:
            Unassigned
            Reporter:
            Ernesto Rodriguez Reina
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: