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

Make query yielding aware of AutoGetCollection at high level

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Execution Team 2020-09-21, Execution Team 2020-10-05

      Description

      With lock free reads, restoring locks and state after query yielding may cause Collection pointers held by AutoGetCollection and other helpers at a high level to be invalid and dangle.

      There might have come a MODE_X writer that installed a new Collection instance into the Collection catalog during the window where yield had the locks released.

      We need to add a way to pass any AutoGetCollection instances to the query plan executor so they can be notified to refresh their state when we restore after yield.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              henrik.edin Henrik Edin
              Reporter:
              henrik.edin Henrik Edin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: