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

Chetan Mehrotra commented on OAK-6635:
--------------------------------------

Thanks for the review

bq. BTW, maybe we should add that 15 minute concurrent test too as an IT.

RepoRefCountIT does the same and currently set to 50 secs. If required that can 
be increased. Other more realistic test is the HybridIndex benchmark 

> IndexReader closed exception in DocumentQueue
> ---------------------------------------------
>
>                 Key: OAK-6635
>                 URL: https://issues.apache.org/jira/browse/OAK-6635
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>    Affects Versions: 1.6.5
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Blocker
>              Labels: candidate_oak_1_6
>             Fix For: 1.8, 1.7.8
>
>         Attachments: OAK-6635-v1.patch
>
>
> Even after fix for OAK-6572 following exception is being seen in some cases
> {noformat}
> 05.09.2017 23:06:15.489 *ERROR* [oak-lucene-3] 
> org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.DocumentQueue Uncaught 
> exception
> org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
>       at org.apache.lucene.index.IndexReader.decRef(IndexReader.java:233)
>       at 
> org.apache.jackrabbit.oak.plugins.index.lucene.IndexNodeManager.decrementSearcherUsageCount(IndexNodeManager.java:255)
>       at 
> org.apache.jackrabbit.oak.plugins.index.lucene.IndexNodeManager.access$400(IndexNodeManager.java:52)
>       at 
> org.apache.jackrabbit.oak.plugins.index.lucene.IndexNodeManager$IndexNodeImpl.release(IndexNodeManager.java:286)
>       at 
> org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.DocumentQueue.processDocs(DocumentQueue.java:275)
>       at 
> org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.DocumentQueue.addDocsToIndex(DocumentQueue.java:214)
>       at 
> org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.DocumentQueue.access$500(DocumentQueue.java:55)
>       at 
> org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.DocumentQueue$2$1.call(DocumentQueue.java:121)
>       at 
> org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.DocumentQueue$2$1.call(DocumentQueue.java:96)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>       at java.lang.Thread.run(Thread.java:745)
> {noformat}
> This also causes the lock to be not released prevent async index from further 
> updates



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to