On Thu, Aug 13, 2009 at 6:02 PM, Shai Erera<ser...@gmail.com> wrote:
> How can the writer delete all previous segments? If I have a reader open,
> doesn't it prevent those files to be deleted? That's why I count on any of
> those files to exist. Perhaps I'm wrong though.

The segments_N file is not held open... it's opened only briefly and
then closed.  So the writer is able to delete it.

> I think we can come up w/ some notification mechanism, through MQ or
> something.

Yeah... if you do that (only attempt to open a new reader when you
know a writer has committed), please report back if that stops the
exception!

> Do you think it's worth to be documented on the Wiki? The entry about FNFE
> during searches mentions NFS or SMB, but does not mention
> SimpleFSLockFactory (Which solves a different problem). Maybe we can add
> that info there?

Actually that FAQ (I'm assuming you're talking about
http://wiki.apache.org/lucene-java/LuceneFAQ#head-24283600713a6643a4a643cef86af5acfc83aa96)
is talking about the old commit lock, which we no longer use (as of
lockless commits).  I think that one should be removed.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to