Re: ClosedChannelException

2011-02-23 Thread Simon Willnauer
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

Re: ClosedChannelException from IndexWriter.getReader()

2010-04-08 Thread Justin
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

Re: ClosedChannelException from IndexWriter.getReader()

2010-04-08 Thread Simon Willnauer
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

Re: ClosedChannelException from IndexWriter.getReader()

2010-04-08 Thread Justin
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

Re: ClosedChannelException from IndexWriter.getReader()

2010-04-08 Thread Michael McCandless
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

Re: ClosedChannelException from IndexWriter.getReader()

2010-04-08 Thread Justin
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

Re: ClosedChannelException from IndexWriter.getReader()

2010-04-08 Thread Michael McCandless
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,