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

move change stream pre-image logic out of OpObserverImpl

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution NAMR Team 2023-06-26, Execution NAMR Team 2023-07-10, Execution NAMR Team 2023-07-24

      Currently the logic for writing pre-images for change streams is embedded in the OpObserverImpl implementions for updates/deletes. We also write pre-images as part of commiting unprepared multi-document transactions and preparing multi-document transaction. It would be nice to extract and separate this logic for accessing the pre-images collection in a separate OpObserver implementation or move the logic up to the caller as a post-OpObserver action.

      Affected functions in OpObserverImpl include:

      • writeChangeStreamPreImagesForTransaction()
      • writeChangeStreamPreImagesForApplyOpsEntries()
      • writeChangeStreamPreImageEntry

      Because this work affects onUpdate and onDelete, this ticket has some overlap with SERVER-74100 and SERVER-74121.

            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: