fix(db): survive concurrent first open of a new database #26
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/db-open-race"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two servers opening the same new database at once could crash one of them with
SQLITE_BUSYonPRAGMA journal_mode = WAL(the busy timeout does not cover that switch). Reproduced on main: 4-5 failures per 30 runs of the existing two-process test.No migration, schema, tool or signature change.
Validation: race test 0/50 failures and schema suite 0/40 after the fix; audit, typecheck, lint, 495 tests x3, build, package smoke, diff --check.