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

provide OpObserver hooks for starting batched writes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2022-06-27, Execution Team 2022-07-11

      The WriteUnitOfWork commits batched writes (multiple CRUD ops to replicate together within a single applyOps oplog entry) through an OpObserver event. However, we start batched writes by instantiating the decorator within the WriteUnitOfWork's constructor. It would be more consistent to extend the OpObserver interface to include methods for starting and aborting batched writes. This would also remove the need for the WriteUnitOfWork class to depend on the BatchedWriterContext.

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

              Created:
              Updated:
              Resolved: