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

Avoid deleting pre-image/change collection entries before allDurable/lastApplied timestamps

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • v7.1, v7.0, v6.0
    • Execution EMEA Team 2023-09-04, Execution EMEA Team 2023-09-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      As change collections and preimages are implicitly replicated collections only deletes are propagated. This leads to an oplog applier race between the delete and insert since both operations could occur at the same time. To avoid this issue we should make sure that only entries after the lastApplied/allDurable timestamps are deleted. That way we can ensure that the insert will always occur before a delete.

      Note that this only occurs with replicated deletes. Unreplicated truncates already solved this issue with SERVER-77972.

            Assignee:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: