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

Audit change collection truncate markers use of abandonSnapshot()

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution EMEA Team 2023-10-16, Execution EMEA Team 2023-10-30

      ChangeStreamChangeCollectionManager::removerExpiredChangeCollectionDocumentsWithTruncate() holds a collection pointer, but abandons the snapshot before issuing a range truncate. 

      A collection instance is only valid while a reference to the catalog instance is held or stashed and as long as the storage snapshot remains open. 

      All of the change collection truncate marker code should be audited for improper use of abandonSnapshot()

            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: