ExportXMLWordPrintableJSON

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

            Assignee:
            Xuerui Fa
            Reporter:
            Ernesto Rodriguez Reina
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: