AutoGetCollectionForReadLockFree can leak lastApplied read source setting

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Henrik Edin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: