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

Prevent change collections from truncating inconsistent data

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution EMEA Team 2023-07-24, Execution EMEA Team 2023-08-21, Execution EMEA Team 2023-09-04

      Change collection truncation is performed on both primaries and secondaries. Data is only safe to truncate once the data is consistent up to the maximum timestamp to be truncated. In the case of the primary, this means not truncating after the no oplog hole point (all durable timestamp). On secondaries, it means not truncating past the lastApplied timestamp. 

       

      The changes for this ticket should mirror the safeguards in place for pre-image truncation and be primary/secondary agnostic. 

       

      Old Description:

      SERVER-77972 describes a potential issue about holding the PBWM while initializing / truncating CollectionTruncateMarkers. We should investigate the implications of holding the lock for change stream change collection CollectionTruncateMarkers.

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

              Created:
              Updated:
              Resolved: