I am not sure, because RandomAccessFile has a getChannel method, so I suspect 
that they share the descriptor. Maybe check it with lsof?

Possibly we could wait until Simon provides a testcase that fails.

-----
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 12:08 PM
> To: java-dev@lucene.apache.org
> Subject: Re: Nasty NIO behavior makes NIOFSDirectory silently close
> channel
> 
> On Thu, Jan 28, 2010 at 5:59 AM, Uwe Schindler <u...@thetaphi.de> wrote:
> > But if you keep the underlying RandomAccessFile open?
> 
> We could do that but... won't this consume 2 file descriptors?
> 
> 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