passbe/beef-migration-test-3 — Issue #311: Database Locked Error
Author: passbe
Created: 2011-12-09 00:19:47+00:00
State: open

What steps will reproduce the problem?
1. Perform a request that writes to the database repeatedly and rapidly

The following error is returned:
DataObjects::ConnectionError: database is locked
/ruby/1.8/gems/dm-do-adapter-1.0.0/lib/dm-do-adapter/adapter.rb:63:in `execute_non_query'
/ruby/1.8/gems/dm-do-adapter-1.0.0/lib/dm-do-adapter/adapter.rb:63:in `execute'
/ruby/1.8/gems/dm-do-adapter-1.0.0/lib/dm-do-adapter/adapter.rb:260:in `with_connection'
/ruby/1.8/gems/dm-do-adapter-1.0.0/lib/dm-do-adapter/adapter.rb:61:in `execute'
/ruby/1.8/gems/dm-do-adapter-1.0.0/lib/dm-do-adapter/adapter.rb:185:in `update'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/repository.rb:180:in `update'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource/state/dirty.rb:54:in `update_resource'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource/state/dirty.rb:22:in `commit'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource.rb:968:in `_persist'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource.rb:999:in `update_with_hooks'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource.rb:996:in `catch'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource.rb:996:in `update_with_hooks'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource.rb:1033:in `save_self'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource.rb:1018:in `_save'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource.rb:1234:in `run_once'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource.rb:1017:in `_save'
/ruby/1.8/gems/dm-core-1.0.0/lib/dm-core/resource.rb:417:in `save'
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=136