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

AutoGetCollectionForReadLockFree can leak lastApplied read source setting

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0, 5.0.28, 6.0.17
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0, v5.0
    • Execution Team 2023-02-06
    • 160

      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.

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

              Created:
              Updated:
              Resolved: