From: Olly Betts <olly@survex.com>
To: sup-talk@rubyforge.org
Subject: Re: [sup-talk] Crash, bad index, and ensuing misery
Date: Tue, 6 Oct 2009 12:40:25 +0000 (UTC) [thread overview]
Message-ID: <loom.20091006T143016-56@post.gmane.org> (raw)
In-Reply-To: <1e5fdab70910031406x713fad49ubb42b42463899c87@mail.gmail.com>
Guillaume Quintard writes:
> On Sat, Oct 3, 2009 at 10:17 PM, Rich Lane <rlane <at> club.cc.cmu.edu> wrote:
> > I'd hoped this kind of corruption wouldn't be possible with newer
> > xapian-index versions. What sup commit are you on? What version of
> > Xapian are you using? Which Xapian backend, Flint or Chert?
>
> ubuntu 9.10
> libxapian-ruby1.8 1.0.14-1
> I'd say flink since I often have to remove flintlock after sup
> commiting suicide.
NEVER EVER remove the flintlock file. It's not the presence of the file which
determines the lock, but rather whether there's an fcntl() lock on it, so
removing it smashes any lock which is currently held, but leaves the process
which held it thinking it still has exclusive write access to the database,
which will likely quickly lead to a corrupt database, especially if you're
doing so because Xapian says the database is already locked. If Xapian says
that, then there really is a process which still has the database open for
writing.
My guess is that removing the flintlock file is the cause of the corruption
you're seeing. Can you reproduce it on a database where you haven't removed
this file?
Also, both chert and flint use the same locking approach with a file called
flintlock, so that doesn't discriminate between them. The easy way to tell
which you have is whether there's a file called "iamflint" or "iamchert" in
the database directory.
Cheers,
Olly
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next prev parent reply other threads:[~2009-10-06 12:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-03 20:04 Guillaume Quintard
2009-10-03 20:17 ` Rich Lane
2009-10-03 21:06 ` Guillaume Quintard
2009-10-03 21:39 ` Rich Lane
2009-10-03 21:54 ` Guillaume Quintard
2009-10-06 12:40 ` Olly Betts [this message]
2009-10-06 13:10 ` Guillaume Quintard
2009-10-03 22:25 ` Rich Lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20091006T143016-56@post.gmane.org \
--to=olly@survex.com \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox