Strip 'rid' field from the oplog entry for applyOps command

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-03-16, Storage Execution 2026-03-30, Storage Execution 2026-04-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      External tools use applyOps command for migration/dump/restore use cases in ways that the oplog rid field will not work correctly. We should remove the field at the user command level, regardless of the OplogApplication::Mode specified in the command, instead of handling it in the oplog application level.

      The primary that runs the applyOps command will then just generate a recordId instead of using the rid field. It will be replicated if the collection uses replicated record id, and not otherwise.

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

              Created:
              Updated:
              Resolved: