Fix pre-fetch destroy flow in connection close

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • WT11.3.0, 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines
    • 2023-12-12 - Heisenbug
    • 5

      There are a few problems with the current way we handle shutting down the pre-fetch functionality.
      (1) Currently, it is possible for pre-fetch to accidentally leave entries on the pre-fetch on the pre-fetch queue as there is no logic in the __wt_prefetch_destroy function that drains the remaining entries on the queue.
      (2) Pre-fetch should not be running during shutdown, but the current implementation does not stop the pre-fetch threads from running until very late into the __conn_close function.

              Assignee:
              Monica Ng
              Reporter:
              Monica Ng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: