[Openstack] [swift] Frequent OperationalError (database locked) in 1.10.0 (Havana)

Pete Zaitcev zaitcev at redhat.com
Thu Nov 14 17:09:35 UTC 2013


On Thu, 14 Nov 2013 14:18:37 +0000
"Juan J. Martinez" <juan at memset.com> wrote:

> I've managed to isolate the change that introduced the problem:
> 
> https://github.com/openstack/swift/commit/0fdad0d9d9e68b00f61171bb2a0dfd840ef5345f
> 
> As this change is just for PyPy support I've reverted it and the problem
> is gone.
> 
> Unfortunately I can't really explain why.
> 
> According to sqlite3 docs [1], *execute* method in the connection is
> creating a cursor, but it looks like the cursor created explicitly is
> doing something differently (at least in Python 2.6 running on Squeeze),
> because I got rid of the OperationalError (database is locked) errors.

Interesting. I don't have a clue either. Peter is going to poke Alex
about this, but ultimately we have to figure it out.

-- Pete




More information about the Openstack mailing list