[Xapian-tickets] [Xapian] #284: occasional !DatabaseModifiedErrors

Xapian nobody at xapian.org
Wed Jul 23 13:37:11 BST 2008


#284: occasional !DatabaseModifiedErrors
---------------------------+------------------------------------------------
 Reporter:  mrks           |        Owner:  olly    
     Type:  defect         |       Status:  assigned
 Priority:  normal         |    Milestone:  1.0.8   
Component:  Backend-Flint  |      Version:  1.0.7   
 Severity:  normal         |   Resolution:          
 Keywords:                 |    Blockedby:          
 Platform:  Linux          |     Blocking:          
---------------------------+------------------------------------------------
Changes (by olly):

  * status:  new => assigned
  * version:  SVN HEAD => 1.0.7
  * milestone:  => 1.0.8


Comment:

 I wonder if the issue could be that writes are being reordered
 aggressively by the disk subsystem such that we pick up some inconsistent
 intermediate state.

 Perhaps we need to flush something like this to avoid such issues:

  * fdatasync() (or equivalent)
  * write new root block
  * fdatasync() (or equivalent)
  * update basefiles

 Currently we do the above but without the first fdatasync().

 I'll put together a patch for you to test which does this, or perhaps
 something which shows the timings if I can think of a good way to do
 that...

-- 
Ticket URL: <http://trac.xapian.org/ticket/284#comment:1>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list