Skip to content

Fix: Increase SQLite busy_timeout to 5 minutes to mitigate locking errors#240

Open
9chait9 wants to merge 2 commits into
colbymchenry:mainfrom
9chait9:fix/issue-238-c3a8e9
Open

Fix: Increase SQLite busy_timeout to 5 minutes to mitigate locking errors#240
9chait9 wants to merge 2 commits into
colbymchenry:mainfrom
9chait9:fix/issue-238-c3a8e9

Conversation

@9chait9
Copy link
Copy Markdown

@9chait9 9chait9 commented May 21, 2026

Fixes #238. Increased SQLite busy_timeout from 2 minutes (120000ms) to 5 minutes (300000ms) in src/db/index.ts to provide more buffer for concurrent read operations, especially when the WASM fallback is active and WAL mode is not available.

Test Plan

  • Unit tests have been added in src/db/__tests__/index.test.ts.
  • The tests cover the initialize and open methods of DatabaseConnection to verify busy_timeout is set to 300000ms.
  • Basic functionality of DatabaseConnection class such as getDb, getPath, isOpen, close, transaction, getSize, and optimize are also covered by unit tests.

@9chait9 9chait9 marked this pull request as ready for review May 21, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQLite "database is locked" error on concurrent MCP tool calls

1 participant