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

provide OpObserver hooks for starting batched writes

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2022-06-27, Execution Team 2022-07-11

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: