Skip to content

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

Open
timronan wants to merge 1 commit intodevelopfrom
database_locking
Open

Increase sql busy timeout and add commit statements to prevent DB locking#114
timronan wants to merge 1 commit intodevelopfrom
database_locking

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