Description
Even after fix for OAK-6572 following exception is being seen in some cases
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)
This also causes the lock to be not released prevent async index from further updates
Attachments
Attachments
Issue Links
- is broken by
-
OAK-6500 NRTIndex leaks file handles due to unclosed IndexReader
- Closed
- is related to
-
OAK-6500 NRTIndex leaks file handles due to unclosed IndexReader
- Closed
-
OAK-6777 IndexReader closed exception in previous reader
- Closed
-
OAK-6637 Release IndexNode lock in finally clause
- Closed
- relates to
-
OAK-6572 IndexReaderClosed exception seen after some run
- Closed
-
OAK-6693 Ensure that IndexNodeManager releases lock in case of error in acquiring it
- Closed