[ https://issues.apache.org/jira/browse/OAK-8097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16781478#comment-16781478 ]
Vikas Saurabh commented on OAK-8097: ------------------------------------ [~tmueller], while opening a CoR would indeed copy file to local (assuming prefetch is true... but, that's default and I guess no one is known to change it). But, I was wondering if could attempt a copy in {{CopyOnWriteDirectory}} itself. Maybe as a simple case, change {{CopyOnWriteDirectory.COWRemoteFileReference#openInput}} to copy from remote to local (one attempt??) before resorting to open from remote? > Load Lucene index files before writing to the index > --------------------------------------------------- > > Key: OAK-8097 > URL: https://issues.apache.org/jira/browse/OAK-8097 > Project: Jackrabbit Oak > Issue Type: Improvement > Components: lucene > Reporter: Thomas Mueller > Priority: Major > Fix For: 1.12 > > > Right now, Lucene index files are downloaded from the datastore when reading > from the index (when running a query). However, when updating the index, they > are not downloaded. So if lazy loading of index files is enabled (OAK-7947), > files are read from the datastore (streaming). Leading to the following > warnings in the log file: > {noformat} > org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnWriteDirectory > COWRemoteFileReference::local file (_2.cfs) doesn't exist > ... > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)