Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

sktm doesn't handle locked databases #40

Open
spbnick opened this issue May 6, 2018 · 0 comments
Open

sktm doesn't handle locked databases #40

spbnick opened this issue May 6, 2018 · 0 comments

Comments

@spbnick
Copy link
Contributor

spbnick commented May 6, 2018

Sktm aborts if it detects SQLite database is locked by another process:

Traceback (most recent call last):
File "/home/skt/sktm/sktm.py", line 129, in
sw.wait_for_pending()
File "/home/skt/sktm/sktm/init.py", line 297, in wait_for_pending
self.check_pending()
File "/home/skt/sktm/sktm/init.py", line 287, in check_pending
patches, bres, bid, series)
File "/home/skt/sktm/sktm/db.py", line 391, in commit_patchtest
brepoid = self.get_repoid(baserepo)
File "/home/skt/sktm/sktm/db.py", line 114, in get_repoid
(baserepo,))
sqlite3.OperationalError: database is locked

This needs investigation, and, if possible, sktm should persist and retry until the database is unlocked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant