Checkpoint threads are still involved in app-assisted eviction

XMLWordPrintableJSON

      Despite the recent fixes, app-assisted eviction somehow still ends up pulling in checkpoint worker threads to do the work, which results in hangs.

      Note the presence of __wti_evict_app_assist_worker here:

      [2026/03/27 00:15:07.965] Thread 14 (Thread 0xffffb4329230 (LWP 357952) "checkpoint-p 1"):
      [2026/03/27 00:15:07.965] #0  0x0000ffffb4563788 in pthread_cond_timedwait@@GLIBC_2.17 () from /lib/aarch64-linux-gnu/libpthread.so.0
      [2026/03/27 00:15:07.965] #1  0x0000ffffb478d83c in __wt_cond_wait_signal (session=session@entry=0xffffb432bef0, cond=0x2966d200, usecs=1000000, run_func=run_func@entry=0xffffb46838a0 <__checkpoint_parallel_thread_chk>, signalled=signalled@entry=0xffffb43289af) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/os_posix/os_mtx_cond.c:115
      [2026/03/27 00:15:07.965] #2  0x0000ffffb468449c in __checkpoint_parallel_thread_run (session=0xffffb432bef0, thread=0x29686830) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/checkpoint/checkpoint_parallel.c:210
      [2026/03/27 00:15:07.965] #3  0x0000ffffb482ce58 in __thread_run (arg=0x29686830) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/support/thread_group.c:32
      [2026/03/27 00:15:07.965] #4  0x0000ffffb455c624 in start_thread () from /lib/aarch64-linux-gnu/libpthread.so.0
      [2026/03/27 00:15:07.965] #5  0x0000ffffb448766c in ?? () from /lib/aarch64-linux-gnu/libc.so.6
      [2026/03/27 00:15:07.965] Thread 13 (Thread 0xffffb3b28230 (LWP 357953) "checkpoint-p 2"):
      [2026/03/27 00:15:07.965] #0  0x0000ffffb4563788 in pthread_cond_timedwait@@GLIBC_2.17 () from /lib/aarch64-linux-gnu/libpthread.so.0
      [2026/03/27 00:15:07.965] #1  0x0000ffffb478d83c in __wt_cond_wait_signal (session=session@entry=0xffffb432c660, cond=0x2966d200, usecs=1000000, run_func=run_func@entry=0xffffb46838a0 <__checkpoint_parallel_thread_chk>, signalled=signalled@entry=0xffffb3b279af) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/os_posix/os_mtx_cond.c:115
      [2026/03/27 00:15:07.965] #2  0x0000ffffb468449c in __checkpoint_parallel_thread_run (session=0xffffb432c660, thread=0x29686b00) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/checkpoint/checkpoint_parallel.c:210
      [2026/03/27 00:15:07.965] #3  0x0000ffffb482ce58 in __thread_run (arg=0x29686b00) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/support/thread_group.c:32
      [2026/03/27 00:15:07.965] #4  0x0000ffffb455c624 in start_thread () from /lib/aarch64-linux-gnu/libpthread.so.0
      [2026/03/27 00:15:07.965] #5  0x0000ffffb448766c in ?? () from /lib/aarch64-linux-gnu/libc.so.6
      [2026/03/27 00:15:07.965] Thread 12 (Thread 0xffffb3327230 (LWP 357954) "checkpoint-p 3"):
      [2026/03/27 00:15:07.965] #0  0x0000ffffb4563788 in pthread_cond_timedwait@@GLIBC_2.17 () from /lib/aarch64-linux-gnu/libpthread.so.0
      [2026/03/27 00:15:07.965] #1  0x0000ffffb478d83c in __wt_cond_wait_signal (session=session@entry=0xffffb432cdd0, cond=0x2966d200, usecs=1000000, run_func=run_func@entry=0xffffb46838a0 <__checkpoint_parallel_thread_chk>, signalled=signalled@entry=0xffffb33269af) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/os_posix/os_mtx_cond.c:115
      [2026/03/27 00:15:07.965] #2  0x0000ffffb468449c in __checkpoint_parallel_thread_run (session=0xffffb432cdd0, thread=0x29685360) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/checkpoint/checkpoint_parallel.c:210
      [2026/03/27 00:15:07.965] #3  0x0000ffffb482ce58 in __thread_run (arg=0x29685360) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/support/thread_group.c:32
      [2026/03/27 00:15:07.965] #4  0x0000ffffb455c624 in start_thread () from /lib/aarch64-linux-gnu/libpthread.so.0
      [2026/03/27 00:15:07.965] #5  0x0000ffffb448766c in ?? () from /lib/aarch64-linux-gnu/libc.so.6
      [2026/03/27 00:15:07.965] Thread 11 (Thread 0xffffb2b26230 (LWP 357955) "checkpoint-p 4"):
      [2026/03/27 00:15:07.965] #0  0x0000ffffb4563788 in pthread_cond_timedwait@@GLIBC_2.17 () from /lib/aarch64-linux-gnu/libpthread.so.0
      [2026/03/27 00:15:07.965] #1  0x0000ffffb478d83c in __wt_cond_wait_signal (session=session@entry=0xffffb432d540, cond=0x296c2790, usecs=usecs@entry=10000, run_func=run_func@entry=0x0, signalled=signalled@entry=0xffffb2b254e0) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/os_posix/os_mtx_cond.c:115
      [2026/03/27 00:15:07.965] #2  0x0000ffffb47373c4 in __wt_cond_wait (session=0xffffb432d540, cond=<optimized out>, usecs=10000, run_func=0x0) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/include/misc_inline.h:21
      [2026/03/27 00:15:07.965] #3  __wti_evict_app_assist_worker (session=session@entry=0xffffb432d540, busy=<optimized out>, busy@entry=false, readonly=readonly@entry=true, interruptible=interruptible@entry=true) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/evict/evict_lru.c:3231
      [2026/03/27 00:15:07.996] #4  0x0000ffffb46840d0 in __wt_evict_app_assist_worker_check (busy=<optimized out>, readonly=true, interruptible=true, didworkp=0x0, session=0xffffb432d540) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/include/../evict/evict_inline.h:964
      [2026/03/27 00:15:07.996] #5  __wt_txn_begin (session=session@entry=0xffffb432d540, conf=0x0) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/include/txn_inline.h:1950
      [2026/03/27 00:15:07.996] #6  0x0000ffffb4684514 in __checkpoint_parallel_thread_run (session=0xffffb432d540, thread=0x29683e00) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/checkpoint/checkpoint_parallel.c:224
      [2026/03/27 00:15:07.996] #7  0x0000ffffb482ce58 in __thread_run (arg=0x29683e00) at /data/mci/0f1bf0e214ebe25d3b474d8eb55984d6/wiredtiger/src/support/thread_group.c:32
      [2026/03/27 00:15:07.996] #8  0x0000ffffb455c624 in start_thread () from /lib/aarch64-linux-gnu/libpthread.so.0
      [2026/03/27 00:15:07.996] #9  0x0000ffffb448766c in ?? () from /lib/aarch64-linux-gnu/libc.so.6
      

            Assignee:
            Peter Macko
            Reporter:
            Peter Macko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: