lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: Hanging with fixed thread pool in the IndexSearcher multithread code
Date Mon, 20 Feb 2012 02:01:33 GMT
On Sun, Feb 19, 2012 at 8:07 PM, Uwe Schindler <uwe@thetaphi.de> wrote:
> See my response. The problem is not in Lucene; its in general a problem of fixed thread
pools that execute other callables from within a callable running at the moment in the same
thread pool. Callables are simply waiting for each other.
>
> Use a separate thread pool for Lucene (or whenever you execute new callables from within
another running callable)

Right. There's nothing like coding a test case to cast one's stupid
errors into high relief. Sorry for all the noise.


>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>> -----Original Message-----
>> From: Benson Margulies [mailto:bimargulies@gmail.com]
>> Sent: Monday, February 20, 2012 1:47 AM
>> To: java-user@lucene.apache.org
>> Subject: Re: Hanging with fixed thread pool in the IndexSearcher multithread
>> code
>>
>> See https://issues.apache.org/jira/browse/LUCENE-3803 for an example of the
>> hang. I think this nets out to pilot error, but maybe Javadoc could protect the
>> next person from making the same mistake.
>>
>> ---------------------------------------------------------------------
>> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message