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

Eviction workers created on open exit immediately

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.9.0, 3.3.9
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: