shutdownSearchExecutorsIfNeeded should wait for task executors to be cleaned up

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • ALL
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      shutdownSearchExecutorsIfNeeded only waits for in progress requests to complete and resets its own reference to mongotTaskExecutor. This doesn't guarantee that the task executor (and its owned resources) will be cleaned up, since search queries also hold references to the executor.

      We should wait until all references to the executor are gone before returning from the shutdown function.

            Assignee:
            Alyssa Clark
            Reporter:
            Alyssa Clark
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: