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

Clean up executor in DocumentSourceCursor on exception

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 8.1 Required, 8.2.0-rc0
    • Component/s: None
    • None
    • Query Execution
    • ALL
    • QE 2025-03-31, QE 2025-04-14
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Originally reported by ian.boros@mongodb.com via Slack:

      SERVER-100707 has led to write conflict or temporarily unavailable exceptions being silently swallowed, but does not guarantee that the plan tree is immediately cleaned up.

      As a consequence, that could actually lead us to attempt to restore() the partially saved() executor, which is illegal. There is at least one invariant in SBE code on the saved state that is enforced in debug builds.

      The actual issue will be fixed in SERVER-103177. This SERVER ticket will only add another integration test after SERVER-103177 provides the actual fix and adds unit tests.

            Assignee:
            jan.steemann@mongodb.com Jan Steemann
            Reporter:
            jan.steemann@mongodb.com Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None