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

Create timing stress failpoint for prefetch thread run

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 5
    • StorEng - Defined Pipeline

      While debugging various failures in the pre-fetch functionality, we found that adding a delay before pre-fetch threads pop off pages from the pre-fetch queue resulted in faster reproducers. Consider turning this into a timing stress failpoint to assist with detecting future problems.

      @@ -82,6 +82,7 @@ __wt_prefetch_thread_run(WT_SESSION_IMPL *session, WT_THREAD *thread)
           WT_RET(__wt_scr_alloc(session, 0, &tmp));
       
           while (F_ISSET(conn, WT_CONN_PREFETCH_RUN)) {
      +        __wt_sleep(0, 5000);
               /*
                * Wait and cycle if there aren't any pages on the queue. It would be nice if this was
                * interrupt driven, but for now just backoff and re-check.
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            monica.ng@mongodb.com Monica Ng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: