Hey, are you using Thread.interrupt() or Future.cancel() somewhere in
your code? If so, this seems to be a limitation in java's NIO library.
see https://issues.apache.org/jira/browse/LUCENE-2239 for details.
If you are running on 64bit then you could try MMapDirectory there
this limitation is by f
java-user@lucene.apache.org
Sent: Thu, April 8, 2010 4:53:08 PM
Subject: Re: ClosedChannelException from IndexWriter.getReader()
Argh! one more running into this issue.
It still bugs me that NIOFSDirectory struggles so badly if interrupt is used.
simon
On Thu, Apr 8, 2010 at 11:19 PM, Justin wrote:
&g
t;
> - Original Message
> From: Michael McCandless
> To: java-user@lucene.apache.org
> Sent: Thu, April 8, 2010 3:50:41 PM
> Subject: Re: ClosedChannelException from IndexWriter.getReader()
>
> OK, phew :)
>
> Yea warming in a separate thread is common... but wh
given.
wait/notify should accomplish the same without interrupting NIOFSDirectory.
- Original Message
From: Michael McCandless
To: java-user@lucene.apache.org
Sent: Thu, April 8, 2010 3:50:41 PM
Subject: Re: ClosedChannelException from IndexWriter.getReader()
OK, phew :)
Yea warming
Sent: Thu, April 8, 2010 2:41:07 PM
> Subject: Re: ClosedChannelException from IndexWriter.getReader()
>
> Are you using Future.cancel or directly using Thread.interrupt? If so
> it could be this nasty issue:
>
> https://issues.apache.org/jira/browse/LUCENE-2239
>
> Try
From: Michael McCandless
To: java-user@lucene.apache.org
Sent: Thu, April 8, 2010 2:41:07 PM
Subject: Re: ClosedChannelException from IndexWriter.getReader()
Are you using Future.cancel or directly using Thread.interrupt? If so
it could be this nasty issue:
https://issues.apache.org/jira
Are you using Future.cancel or directly using Thread.interrupt? If so
it could be this nasty issue:
https://issues.apache.org/jira/browse/LUCENE-2239
Try temporarily using a Directory impl other than NIOFSDirectory and
see if the problem still happens?
Mike
On Thu, Apr 8, 2010 at 2:14 PM,