Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Writable memory connections now wait up to five seconds when SQLite is briefly locked by another writer. This lets a command continue after a short concurrent write instead of failing immediately with
SQLITE_BUSY.Why
Multiple agent processes can write to the same memory database concurrently. A foreground command that opens the writable store also runs migrations, and without a busy timeout that open can fail immediately while another short transaction is committing.
OpenLiveReadOnlyalready setsbusy_timeout(250); the writableOpenpath had none. Five seconds is a starting value; happy to change it if you prefer another bound.Verification
master(busy_timeout = 0) and passes with this change.open database: migrate: backfill stored_at: database is locked (5) (SQLITE_BUSY)while a second connection held a write transaction) and verified that the same command succeeds with the timeout configured.go vet ./...andgo test ./...pass.Checklist