[ https://issues.apache.org/jira/browse/OAK-8898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17069349#comment-17069349 ]
Thomas Mueller edited comment on OAK-8898 at 3/28/20, 9:42 AM: --------------------------------------------------------------- {noformat} OAK-8898-1.10.8.patch {noformat} is a patch for Oak 1.10.8 oak-lucene/src. This is _not_ the 1.10 branch, which contains further changes; it is for https://svn.apache.org/repos/asf/jackrabbit/oak/tags/jackrabbit-oak-1.10.8 I created a diagnostic build using: {noformat} cd oak-parent mvn versions:set -DnewVersion=1.10.8-OAK-8898 cd .. mvn -DskipTests clean install {noformat} To verify the patch is installed, see the log file and search for "org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex oak.lucene.oldFacetProvider = false". To switch to the old (buggy) behavior, set the system property "oak.lucene.oldFacetProvider" to "true", e.g. {noformat} java -Doak.lucene.oldFacetProvider=true ... {noformat} was (Author: tmueller): OAK-8898-1.10.8.patch is a patch for Oak 1.10.8 oak-lucene/src. This is _not_ the 1.10 branch, which contains further changes; it is for https://svn.apache.org/repos/asf/jackrabbit/oak/tags/jackrabbit-oak-1.10.8 I created a diagnostic build using: {noformat} cd oak-parent mvn versions:set -DnewVersion=1.10.8-OAK-8898 cd .. mvn -DskipTests clean install {noformat} To verify the patch is installed, see the log file and search for "org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex oak.lucene.oldFacetProvider = false". To switch to the old (buggy) behavior, set the system property "oak.lucene.oldFacetProvider" to "true", e.g. {noformat} java -Doak.lucene.oldFacetProvider=true ... {noformat} > On querying, IndexReader failed with AlreadyClosedException > ----------------------------------------------------------- > > Key: OAK-8898 > URL: https://issues.apache.org/jira/browse/OAK-8898 > Project: Jackrabbit Oak > Issue Type: Bug > Reporter: Mohit Kataria > Assignee: Mohit Kataria > Priority: Major > Fix For: 1.26.0, 1.22.3 > > > This is an intermittent issue, where on querying the code throws > AlreadyClosedException. > > {code:java} > Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexReader > is closed > at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:262) > [org.apache.jackrabbit.oak-lucene:1.10.2] > at > org.apache.lucene.index.BaseCompositeReader.document(BaseCompositeReader.java:108) > [org.apache.jackrabbit.oak-lucene:1.10.2] > at org.apache.lucene.index.IndexReader.document(IndexReader.java:446) > [org.apache.jackrabbit.oak-lucene:1.10.2] > at > org.apache.jackrabbit.oak.plugins.index.lucene.util.StatisticalSortedSetDocValuesFacetCounts.getAccessibleSampleCount(StatisticalSortedSetDocValuesFacetCounts.java:169) > [org.apache.jackrabbit.oak-lucene:1.10.2] > at > org.apache.jackrabbit.oak.plugins.index.lucene.util.StatisticalSortedSetDocValuesFacetCounts.getTopChildren0(StatisticalSortedSetDocValuesFacetCounts.java:104) > [org.apache.jackrabbit.oak-lucene:1.10.2] > at > org.apache.jackrabbit.oak.plugins.index.lucene.util.StatisticalSortedSetDocValuesFacetCounts.getTopChildren(StatisticalSortedSetDocValuesFacetCounts.java:70) > [org.apache.jackrabbit.oak-lucene:1.10.2] > at > org.apache.lucene.facet.MultiFacets.getTopChildren(MultiFacets.java:52) > [org.apache.jackrabbit.oak-lucene:1.10.2] > at > org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex$LuceneFacetProvider.getFacets(LucenePropertyIndex.java:1547) > [org.apache.jackrabbit.oak-lucene:1.10.2] > at > org.apache.jackrabbit.oak.plugins.index.search.spi.query.FulltextIndex$FulltextResultRow.getFacets(FulltextIndex.java:353) > [org.apache.jackrabbit.oak-lucene:1.10.2] > at > org.apache.jackrabbit.oak.plugins.index.search.spi.query.FulltextIndex$FulltextPathCursor$2.getValue(FulltextIndex.java:472) > [org.apache.jackrabbit.oak-lucene:1.10.2] > ... 237 common frames omitted > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)