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

AutoGetCollectionForReadLockFree can leak lastApplied read source setting

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2023-02-06
    • 160

    Description

      AutoGetCollectionForReadLockFree modifies the read source and sets it to lastApplied if needed. This setting is not restored at destruction or when the storage engine snapshot is closed. If we concurrently have become a writable primary this is problematic for any subsequent operation that doesn't use AutoGetCollectionForReadLockFree as we do not generally handle the lastApplied read source.

      Attachments

        Activity

          People

            henrik.edin@mongodb.com Henrik Edin
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: