lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (LUCENE-6500) ParallelCompositeReader does not always call closed listeners
Date Tue, 26 May 2015 12:02:18 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-6500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Uwe Schindler updated LUCENE-6500:
----------------------------------
    Comment: was deleted

(was: bq. For the record, no existing tests failed with the change I made.

You removed this test:

{code:java}
-    assertEquals(3, pr.leaves().size());
-
-    for(LeafReaderContext cxt : pr.leaves()) {
-      cxt.reader().addReaderClosedListener(new ReaderClosedListener() {
-          @Override
-          public void onClose(IndexReader reader) {
-            listenerClosedCount[0]++;
-          }
-        });
-    }
-    pr.close();
-    assertEquals(3, listenerClosedCount[0]);
{code})

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message