Add size delta to insert, update, and delete oplog entries

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Storage Execution 2026-03-16
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Original
      In the event of recovery, some oplog entries may need to be read to get the correct size and count of collections. These operations are already included in the last checkpoint, so we cannot get the size changes by reapplying them.

      We'll need to start recording the size delta of each insert, update, and delete operations in their oplog entries, in a single field object

      "m": {
        "sz": <int32>
      }

      We might want to consider storing the new field in the o2 field for backward compatibility (in testing).

            Assignee:
            Haley Connelly
            Reporter:
            Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: