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.

Mike

"Yonik Seeley" <[EMAIL PROTECTED]> wrote:
> On Nov 12, 2007 1:41 PM, robert engels <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to