[Xapian-discuss] xapian database corrupt with multi-write
Olly Betts
olly at survex.com
Tue Nov 1 12:08:29 GMT 2011
On Tue, Nov 01, 2011 at 11:47:49AM +0000, James Aylett wrote:
> On 30 Oct 2011, at 23:30, ????????? wrote:
>
> > When there are mutiple write to a xapian db, it should raise db locked
> > error. But I found the DB is currupted after that.
> >
> > It happened very often in our system.
>
> I can't reproduce this here, and that kind of bug would bite a lot of
> people if it were general.
There are tests in the testsuite that locking actually works.
> It seems likely that there's something specific to the way you're
> doing things.
Indeed - what platform (operating system and filesystem) is this on?
Also, what Xapian version?
> Are you getting the DatabaseLockError raised, and then on subsequent
> open finding the database to be corrupt? Or are you not seeing the
> exception and subsequently finding the database to be corrupt?
Yes, a precise explanation of what you see would be very helpful too.
Cheers,
Olly
More information about the Xapian-discuss
mailing list