lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: TermInfosReader lazy term index reading
Date Fri, 02 Feb 2007 20:49:25 GMT
Yonik Seeley wrote:
> I ran across a situation where a great number of threads were blocked on
> ensureIndexIsRead(), even after it had already been loaded.

That sounds bizarre.  A sync block that tests a field for non-null 
shouldn't tie things up much, I wouldn't think.  Are you sure that one 
of the threads wasn't actually reading the index?  Or perhaps some other 
method also synchronizes on the same object?

Doug

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


Mime
View raw message