[Xapian-tickets] [Xapian] #275: Opening a writable database should retry if database is locked

Xapian nobody at xapian.org
Fri Jun 20 10:51:34 BST 2008


#275: Opening a writable database should retry if database is locked
-------------------------+--------------------------------------------------
 Reporter:  richard      |       Owner:  olly    
     Type:  enhancement  |      Status:  new     
 Priority:  low          |   Milestone:          
Component:  Other        |     Version:  SVN HEAD
 Severity:  minor        |    Keywords:          
Blockedby:               |    Platform:  All     
 Blocking:               |  
-------------------------+--------------------------------------------------
 Writable databases currently fail to open with a DatabaseLocked exception
 if the database is already opened by a different process.  In situations
 where multiple processes (or threads) want to open a database for writing,
 this forces users to implement a retry mechanism to handle these errors.
 It might be helpful if databases had an option which would cause them to
 retry (until a timeout was reached) if the database was locked, to avoid
 users having to implement retry mechanisms in every application wanting
 this feature.

 Alternatively, it might be better to continue with our current approach of
 suggesting that users structure applications such that database writes are
 marshalled into a single location and performed on a single
 WritableDatabase object.

-- 
Ticket URL: <http://trac.xapian.org/ticket/275>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list