Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2724

Eviction workers created on open exit immediately

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.0, 3.3.9
    • Labels:

      Description

      I noticed while debugging another problem that eviction worker threads created on startup are often exiting immediately, and the WiredTiger doesn't notice.

      The problem is that the threads are starting before WT_CONN_EVICTION_RUN is set, and the __wt_thread_create call returns success, since the thread is started and exits cleanly.

      We should:

      • Stop creating workers before the cache is setup.
      • Update how we track running eviction workers, to be based on currently running threads, rather than the number of threads that have been started.

      Reproduce this by running:

      ./bench/wtperf/wtperf -O ../bench/wtperf/runners/btree-split-stress.wtperf -o verbose=2
      

      Turning on evict-server verbose logging and looking for: cache eviction thread exiting at the start of the run.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                backlog-server-storage Backlog - Storage Team
                Reporter:
                alexander.gorrod Alexander Gorrod
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: