Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-70903

support multi-oplog format for batched operations

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-11-14, Execution Team 2022-12-12, Execution Team 2022-11-28, Execution Team 2022-12-26, Execution Team 2023-01-09, Execution Team 2023-01-23

      Batched operations (see BatchedWriteContext) are currently limited to replicating as a single oplog entry. This places the responsibility of limiting the operations in a batched write on the caller. It would be nice to re-use the chained applyOps format used for large multi-document transactions to format large batched operations in a similar manner. Callers would no longer be constrained by the single applyOps format. However, for performance reasons, callers should still be aware of the implications of allowing unbounded set of operations to be batched and handle these issues accordingly.

      This ticket is limited to having the primary emit a chain of applyOps oplog entries representing a large batched write. Processing this chain of applyOps oplog entries on the secondary will be addressed in a follow-up ticket.

      This behavior will be guarded by a feature flag.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: