You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Jamie Band <ja...@stimulussoft.com> on 2009/10/08 23:22:51 UTC
Index.close() infinite TIME_WAITING
Hi All
I have a long running situation where our indexing thread is getting
stuck indefinitely in IndexWriter's close method. Yourkit shows the
thread to be stuck in TIME_WAITING. Any idea's on what could be causing
this?
Could it be one of the streams or readers we passed to the document?
I am running Lucene 2.9.0.
Many thanks in advance
Jamie
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Index.close() infinite TIME_WAITING
Posted by Michael McCandless <lu...@mikemccandless.com>.
Is it possible a large merge is running? By default IW.close waits
for outstanding merges to complete. Can you post the stacktrace?
Mike
On Thu, Oct 8, 2009 at 5:22 PM, Jamie Band <ja...@stimulussoft.com> wrote:
> Hi All
>
> I have a long running situation where our indexing thread is getting stuck
> indefinitely in IndexWriter's close method. Yourkit shows the thread to be
> stuck in TIME_WAITING. Any idea's on what could be causing this?
> Could it be one of the streams or readers we passed to the document?
>
> I am running Lucene 2.9.0.
>
> Many thanks in advance
>
> Jamie
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
RE: Index.close() infinite TIME_WAITING
Posted by Uwe Schindler <uw...@thetaphi.de>.
Did you do some extra locking around IndexWriter using the IndexWriter
itsself as mutex (e.g. synchronized(writer) {...}). This is not supported
and hangs. IndexWriter itself is thread-safe.
Uwe
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
> -----Original Message-----
> From: Jamie Band [mailto:jamie@stimulussoft.com]
> Sent: Friday, October 09, 2009 12:23 AM
> To: java-user@lucene.apache.org
> Subject: Index.close() infinite TIME_WAITING
>
> Hi All
>
> I have a long running situation where our indexing thread is getting
> stuck indefinitely in IndexWriter's close method. Yourkit shows the
> thread to be stuck in TIME_WAITING. Any idea's on what could be causing
> this?
> Could it be one of the streams or readers we passed to the document?
>
> I am running Lucene 2.9.0.
>
> Many thanks in advance
>
> Jamie
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org