lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: SMB2 cache
Date Thu, 13 Aug 2009 22:53:42 GMT
On Thu, Aug 13, 2009 at 6:02 PM, Shai Erera<serera@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message