sebbacon/alaveteli — Issue #330: Occasional databasemodified errors
Author: sebbacon
Created: 2012-01-10 12:46:26+00:00
State: open

Users will sometimes see errors when a database has been modified during a read operation. They shouldn't have to worry about such errors -- the request should be retried.

A IOError occurred in request#list:

DatabaseModifiedError: The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation
[RAILS_ROOT]/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb:281:in `mset'

-------------------------------
View and search requests:
-------------------------------

* URL : http://www.whatdotheyknow.com/list/successful?page=1328
* IP address: 66.249.66.26
* Parameters: {"action"=>"list", "page"=>"1328", "view"=>"successful", "controller"=>"request", "latest_status"=>["successful"]}
* Rails root: /data/vhost/www.whatdotheyknow.com/alaveteli

[RAILS_ROOT]/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb:281:in `mset'
[RAILS_ROOT]/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb:281:in `initialize_query'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
[RAILS_ROOT]/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb:255:in `initialize_query'
[RAILS_ROOT]/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb:421:in `initialize'
[RAILS_ROOT]/app/models/info_request.rb:147:in `new'
[RAILS_ROOT]/app/models/info_request.rb:147:in `full_search'
[RAILS_ROOT]/app/controllers/application_controller.rb:359:in `perform_search'
[RAILS_ROOT]/app/controllers/request_controller.rb:158:in `list'