Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 451791 - parallel access to a database does not work
Summary: parallel access to a database does not work
Alias: None
Product: Fedora
Classification: Fedora
Component: sqlite
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Stepan Kasal
QA Contact: Fedora Extras Quality Assurance
Depends On: 450664
Blocks: 449433
TreeView+ depends on / blocked
Reported: 2008-06-17 13:28 UTC by Stepan Kasal
Modified: 2008-06-17 14:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-06-17 14:45:34 UTC

Attachments (Terms of Use)
test script (deleted)
2008-06-17 13:28 UTC, Stepan Kasal
no flags Details

Description Stepan Kasal 2008-06-17 13:28:33 UTC
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 13:28:33 UTC
Created attachment 309615 [details]
test script

Comment 2 Stepan Kasal 2008-06-17 14:45:34 UTC
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.