Adrien Grand commented on LUCENE-8254:

I think it would be better to test the cache helper before trying to take the 
lock, instead of doing it in the try block?

> LRUQueryCache can leak locks
> ----------------------------
>                 Key: LUCENE-8254
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8254
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Alan Woodward
>            Priority: Major
>         Attachments: LUCENE-8254.patch
> If a QueryCache is shared between two searchers, one of which has an 
> IndexReader with no CacheHelper, then CachingWrapperWeight can leak locks in 
> scorerSupplier() and bulkScorer().  This can cause the IndexReader that does 
> have a CacheHelper to hang on close.

This message was sent by Atlassian JIRA

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

Reply via email to