lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: SMB2 cache
Date Thu, 13 Aug 2009 22:53:42 GMT
On Thu, Aug 13, 2009 at 6:02 PM, Shai Erera<> 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

> 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
is talking about the old commit lock, which we no longer use (as of
lockless commits).  I think that one should be removed.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message