Skip to content
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

Increase sql busy timeout and add commit statements to prevent DB locking #114

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

timronan
Copy link
Contributor

It seems like this database locking is associated with multiple open transactions that are all trying to write or read from the database at the same time. The busy timeout has been increased to 120 seconds by changing line 19 in sqlite.py. The busy timeout allows incoming SQL transactions to sleep while another transaction is interfacing with ### the database, the maximum amount of time that the transaction can sleep is set in seconds by the integer value above Busy Timeout.

A connection.commit() command also has been added after the DELETE FROM statements. Committing the DELETE FROM statements to the database should allow the database to unlock and be ready for another transaction commit .

The request.txt, available in issue #113 , has been run through an instance of modified ROVER with no locking database exceptions.

@timronan timronan requested a review from chad-earthscope July 11, 2019 20:35
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.

1 participant