[ 
https://issues.apache.org/jira/browse/LUCENE-6500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558926#comment-14558926
 ] 

Uwe Schindler commented on LUCENE-6500:
---------------------------------------

Another solution to fix this would be to also add all those deeper nested 
synthetic subreaders to the completeReaderSet (see last line of ctor). In that 
case they can stay with docClose() empty (to not affect refcount). I will try 
this out. I will also add a test for the case I mentioned before.

> ParallelCompositeReader does not always call closed listeners
> -------------------------------------------------------------
>
>                 Key: LUCENE-6500
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6500
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-6500.patch
>
>
> CompositeParallelReader misses to call closed listeners when the reader which 
> is provided at construction time does not wrap leaf readers directly, such as 
> a multi reader over directory readers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to