lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Williams <>
Subject Re: 15 minute hang in IndexInput.clone() involving finalizers
Date Fri, 15 Dec 2006 18:22:19 GMT
Yonik and Robert, thanks for the suggestions and pointer to the patch!

We've looked at the synchronization involved with finalizers and don't
see how it could cause the issue as running the finalizers themselves is
outside the lock.  The code inside the lock is simple fixed-time list
manipulation, not even a loop.  On the other hand, we don't see how
anything else could cause the problem either.

We'll try the patch and let everybody know if it resolves the issue. 
Getting rid of the finalizer will hopefully at least circumvent the problem.



robert engels wrote on 12/15/2006 07:23 AM:
> I don't think there is necessarily a limit, but I am assuming there is
> some interaction between the finalizer or GC threads and adding new
> finalizers, which would require some sort of synchronization.
> Do you use network resources in your app? I have a hunch this is
> somehow the cause.
> On Dec 15, 2006, at 11:20 AM, Yonik Seeley wrote:
>> On 12/15/06, robert engels <> wrote:
>>> If you could post a complete thread dump that would be better.
>>> I am "thinking" that it is not really a bug, but that the finalizer
>>> or GC thread is very busy, or possibly blocked on a network resource,
>>> and that is preventing the addition of additional finalizers.
>> I didn't know there was a limit to the number of finalizers... but it
>> certainly sounds plausible.
>> I think we should still get rid of all the unnecessary finalizers in
>> IndexInput though.
>> -Yonik
>> Solr, the open-source Lucene search
>> server
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message