Re: FW: Re: Occasional Hang in IndexWriter.close()

2008-04-22 Thread Stu Hood
; Sent: Tuesday, April 22, 2008 7:32am To: java-user@lucene.apache.org, [EMAIL PROTECTED] Subject: Re: FW: Re: Occasional Hang in IndexWriter.close() - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: FW: Re: Occasional Hang in IndexWriter.close()

2008-04-22 Thread Michael McCandless
The hang also only happens if you are using SerialMergeScheduler. Stu, one question: was there an interesting reason why you switched back to SerialMergeScheduler? Did you hit an issue with ConcurrentMergeScheduler? Mike Stu Hood <[EMAIL PROTECTED]> wrote: > Hey gang, > > The finally block was

Re: FW: Re: Occasional Hang in IndexWriter.close()

2008-04-22 Thread Michael McCandless
OK this output was very helpful, thanks! I think I see what's happening here. Basically a merge can sneak in when Lucene doesn't expect it to (on copying a single external segment over), and as a result it never gets scheduled. This happens only with addIndexesNoOptimize, when the index you addi

FW: Re: Occasional Hang in IndexWriter.close()

2008-04-21 Thread Stu Hood
Hey gang, The finally block was not hiding any exceptions: I'm still seeing the hangs in IndexWriter.close(). I'm appending the relevant output from 'setInfoStream(System.out)'. It looks like after I order the close, the IndexWriter begins a flush, and then hangs. Any ideas? Thanks, Stu >>>