mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
The SQLite writer unwrapped BEGIN IMMEDIATE, so a connection that could not get the write lock within the busy timeout panicked and aborted the whole run. This happened in the third SQLite run with 16 connections on 2026-09-23: three threads failed with "database is locked" about 60 s into the run, which is the busy timeout. SQLite's default busy handler polls for the lock with sleeps of up to 100 ms instead of queueing for it, so with many writers one connection can keep losing the lock to the others for the whole timeout. The transaction has not written anything yet, so it now starts over. The wait stays in its sample, restarts are recorded per sample like on the Turso side, and the summary prints the total.