Bug 451791 - parallel access to a database does not work
parallel access to a database does not work
Product: Fedora
Classification: Fedora
Component: sqlite (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Stepan Kasal
Fedora Extras Quality Assurance
Depends On: 450664
Blocks: 449433
  Show dependency treegraph
Reported: 2008-06-17 09:28 EDT by Stepan Kasal
Modified: 2008-06-17 10:45 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-06-17 10:45:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
test script (1017 bytes, text/plain)
2008-06-17 09:28 EDT, Stepan Kasal
no flags Details

  None (edit)
Description Stepan Kasal 2008-06-17 09:28:33 EDT
Two processes should be able to access the same database file simultaneously,
provided they commit timely.

The problem does not appear with 3.5.6-1.fc9 nor with 3.5.9.

See the attached reproducer.

With working sqlite, the output is:

$ ./t07busy8-lock

With a broken sqlite build, this is followed by two error messages:

DBD::SQLite::db do failed: database is locked(5) at dbdimp.c line 403 at ./t07bu
sy8-lock line 45, <READER> line 1.
Issuing rollback() for database handle being DESTROY'd without explicit
disconnect() at ./t07busy8-lock line 45, <READER> line 1.

According to my tests, this is fixed in sqlite-3.5.9, so if the suggestion from
bug #450664 is accepted, this should disappear.
Comment 1 Stepan Kasal 2008-06-17 09:28:33 EDT
Created attachment 309615 [details]
test script
Comment 2 Stepan Kasal 2008-06-17 10:45:34 EDT
sqlite has been updated, which should solve this issue as well

Note You need to log in before you can comment on or make changes to this bug.