You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Vikas Saurabh (JIRA)" <ji...@apache.org> on 2018/12/06 20:12:00 UTC

[jira] [Commented] (OAK-6972) DefaultIndexReader closes suggest directory multiple times

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

Vikas Saurabh commented on OAK-6972:
------------------------------------

Backported on 1.6 at [r1848357|https://svn.apache.org/r1848357].

> DefaultIndexReader closes suggest directory multiple times
> ----------------------------------------------------------
>
>                 Key: OAK-6972
>                 URL: https://issues.apache.org/jira/browse/OAK-6972
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>    Affects Versions: 1.7.11
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.7.12, 1.8.0, 1.6.16
>
>
> With OAK-6895 DefaultIndexReader now closes CopyOnReadDirectory used for suggestor multiple times. This leads to exception later 
> {noformat}
> 21.11.2017 13:53:52.750 *WARN* [oak-lucene-2162] org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProviderService Error occurred in asynchronous processing
> org.apache.lucene.store.AlreadyClosedException: this Directory is closed
> 	at org.apache.lucene.store.BaseDirectory.ensureOpen(BaseDirectory.java:66)
> 	at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:338)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.directory.LocalIndexFile.getFSDir(LocalIndexFile.java:125)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.directory.LocalIndexFile.<init>(LocalIndexFile.java:43)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier.deleteFile(IndexCopier.java:276)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory.removeDeletedFiles(CopyOnReadDirectory.java:315)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory.access$300(CopyOnReadDirectory.java:51)
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory$2.run(CopyOnReadDirectory.java:278)
> 	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}
> As a fix
> # Avoid closing the directory multiple times in DefaultIndexReader
> # Make CopyOnReadDirectory resilient to multiple close calls



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)