jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-6972) DefaultIndexReader closes suggest directory multiple times
Date Wed, 22 Nov 2017 09:50:00 GMT

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

Chetan Mehrotra resolved OAK-6972.
----------------------------------
    Resolution: Fixed

Done with 1816019

> 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.8, 1.7.12
>
>
> 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
(v6.4.14#64029)

Mime
View raw message