[Xapian-tickets] [Xapian] #468: Replication of databases with lazy table creation is not tested

Xapian nobody at xapian.org
Wed Apr 21 16:29:17 BST 2010


#468: Replication of databases with lazy table creation is not tested
---------------------------+------------------------------------------------
 Reporter:  richard        |       Owner:  richard  
     Type:  defect         |      Status:  new      
 Priority:  normal         |   Milestone:  1.1.6    
Component:  Backend-Chert  |     Version:  SVN trunk
 Severity:  normal         |   Blockedby:           
 Platform:  All            |    Blocking:           
---------------------------+------------------------------------------------
 Currently, there are no tests of replication when tables are created
 lazily; for example, consider the following situation.

  - Database A is created, and some documents are added with no positional
 information (so no position.DB file is created)

  - Database B is created by replication of A

  - Database A has a new document with positional information added, so the
 position.DB file is created.

  - Database B is then updated by replication.

 I suspect that either the final replication will fail with an error due to
 not being able to find the table, or the position data will silently be
 lost.


 Of a lower priority: I suspect that we will also have a failure in the
 situation where the positional information in a "master" database is
 deleted by a user (by removing the .DB and base files for the position
 lists), and a replication update is then performed: to fix this (such that
 the replicated child ends up without the position database) I think we
 would need to check for existence of the .DB files on the master at the
 end of each replication, and send a message if they are missing.  I am not
 sure that supporting this is worthwhile.

 I've not had time to look at writing a test for this - it's probably not
 very hard.  Marking as 1.1.6 since I suspect this actually is a problem
 that needs fixing, rather than just a missing testcase for a feature which
 should work.

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



More information about the Xapian-tickets mailing list