lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <>
Subject Re: [jira] Commented: (LUCENE-1044) Behavior on hard power shutdown
Date Mon, 12 Nov 2007 20:06:34 GMT

I'll look into this approach.

We must also sync/close the file before we can open it for reading, eg
for creating compound file or if a merge kicks off.

Though if we are willing to not commit a new segments_N after saving a
segment and before creating its compound found then we don't need to
sync the segment files in that case.

I think I would put all this logic (to manage background sync'ing)
under FSDirectory.


"Yonik Seeley" <> wrote:
> On Nov 12, 2007 1:41 PM, robert engels <> wrote:
> > Would it not be simpler to pure Java...
> >
> > Add the descriptor that needs to be sync'd (and closed) to a Queue.
> > Start a Thread to sync/close descriptors.
> >
> > In commit(), wait for all sync threads to terminate using join().
> This would also need to be hooked in with file deletion (since a file
> could be created and deleted before commit()).
> -Yonik
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message