But if you keep the underlying RandomAccessFile open?

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de

> -----Original Message-----
> From: Michael McCandless [mailto:luc...@mikemccandless.com]
> Sent: Thursday, January 28, 2010 11:47 AM
> To: java-dev@lucene.apache.org
> Cc: simon.willna...@gmail.com
> Subject: Re: Nasty NIO behavior makes NIOFSDirectory silently close
> channel
> 
> On Thu, Jan 28, 2010 at 5:20 AM, Uwe Schindler <u...@thetaphi.de> wrote:
> 
> > Can we fix NIOFSIndexInput to simply reopen the channel when the
> exception occurs?
> 
> The problem is that the file may have been deleted in the meantime.
> 
> This is quite a nasty behavior of FileChannel.
> 
> Mike
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-dev-h...@lucene.apache.org



---------------------------------------------------------------------
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