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

Truncates on change collections and pre-images collections may truncate inconsistent ranges

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • Execution EMEA Team 2023-06-26

      In both change collections and pre-images collections, truncates are issued based on the 'lastRecord' of a given marker.

      Truncate markers are updated when there are inserts into each collection asynchronously. On secondaries, they may even be applied out of order. However, for each collection there is a separate remover thread. If the 'lastRecord' is not actually durable, we could accidentally truncate records before they have been made durable (applies to both primaries and secondaries). Additionally, on secondaries, truncates should be limited to ranges < lastApplied to guarantee a consistent state of the data within its range.

            Assignee:
            haley.connelly@mongodb.com Haley Connelly
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: