_findOrDeleteDocuments may cause acquisitions to become invalid

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication
    • Fully Compatible
    • ALL
    • v8.2, v8.0, v7.0
    • Repl 2025-12-22
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the process of doing SERVER-112058 we discovered that the function uses the same path for both find or delete depending on what action we're doing.

      However, this reveals a problem if we're doing a find since those get wrapped in a writeConflictRetry loop as well. If the loop were to encounter a write conflict, it would abandon the snapshot and potentially cause an existing collection acquisition to have a stale pointer. This has the potential to result in a system crash or undefined behaviour.

            Assignee:
            Pierre Turin
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: