Create a new optional top-level oplog entry field h (document hash)

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Storage Execution 2026-06-22, Storage Execution 2026-07-06
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      Adds a new optional top-level field h (cpp name docHash) to DurableReplOperation in oplog_entry.idl
      This ticket only adds the field to the oplog entry. Nothing should produce or read h yet.

      This h field will eventually carry a hash of the document affected by an insert, update, or delete operation.

      h must be optional. This is because older binaries, feature-off, FCV downgrade, and unsupported collections will produce oplog entries without it, and a required field would fail to parse those entries.

      Acceptance criteria

      • h added to DurableReplOperation as optional: true, as a int32 safeInt.
      • Round-trip test: a DurableReplOperation without h parses without error.
      • Round-trip test: a DurableReplOperation with h serializes and deserializes to the same value without error.
      • No producer or consumer wired
      • Marked downstream-impacting; tools team notified per the Downstream Impact process.

            Assignee:
            Elise Zhu
            Reporter:
            Stephanie Eristoff
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: