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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/12/07 11:32:11 UTC

[jira] [Commented] (OAK-2719) Warn about local copy size different than remote copy in oak-lucene with copyOnRead enabled

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

Chetan Mehrotra commented on OAK-2719:
--------------------------------------

Chances of this scenario are greatly reduced with prefetching of index files enabled by default as then there is no race condition.

> Warn about local copy size different than remote copy in oak-lucene with copyOnRead enabled
> -------------------------------------------------------------------------------------------
>
>                 Key: OAK-2719
>                 URL: https://issues.apache.org/jira/browse/OAK-2719
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>              Labels: resilience
>
> At times following warning is seen in logs
> {noformat}
> 31.03.2015 14:04:57.610 *WARN* [pool-6-thread-7] org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier Found local copy for _0.cfs in NIOFSDirectory@/path/to/index/e5a943cdec3000bd8ce54924fd2070ab5d1d35b9ecf530963a3583d43bf28293/1 lockFactory=NativeFSLockFactory@/path/to/index/e5a943cdec3000bd8ce54924fd2070ab5d1d35b9ecf530963a3583d43bf28293/1 but size of local 1040384 differs from remote 1958385. Content would be read from remote file only
> {noformat}
> The file length check provides a weak check around index file consistency. In some cases this warning is misleading. For e.g. 
> # Index version Rev1 - Task submitted to copy index file F1 
> # Index updated to Rev2 - Directory bound to Rev1 is closed
> # Read is performed with Rev2 for F1 - Here as the file would be locally created the size would be different as the copying is in progress
> In such a case the logic should ensure that once copy is done the local file gets used



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)