-
-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core bug with busy timeout (not working) #1275
Comments
Hi, could you provide a reproduce-able example? |
@JoshuaWise it's very hard to reproduce, but I'm having the same issue as commented here by another completely different user at #155 (comment) The issue happens way before 5 seconds. |
Just out of curiosity, as there is nothing happening on the way down from setting the timeout on a new Database instance in JavaScript into the actual C function of sqlite: You are defining the timeout in milliseconds and you are not creating new instances of the database from several threads with different timeouts? |
Correct, one single database instance, and setting it in milliseconds. |
That does not mean the timeout does not work. SQLite does not guarantee that the timeout is respected. In case of a deadlock it will immediately throw
https://www.sqlite.org/c3ref/busy_handler.html
Sounds a lot like a race condition that causes a deadlock. Edit: in the linked issue you're saying
But now you're saying
when asked if you're using
Does that mean this issue is not related to your other comment? You have a single process, with a single thread and a single |
|
As per #155 and #1155 there still seems to be an issue with busy timeout not being respected.
The
timeout
option innew Database
is not respected. For example, we set it to 10 seconds, and it sometimes immediately throws an error when the database is busy.The text was updated successfully, but these errors were encountered: