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 2016/02/16 20:09:18 UTC

[jira] [Updated] (OAK-4024) CoW uses incorrect directory on re-indexing when indexPath property is used

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

Vikas Saurabh updated OAK-4024:
-------------------------------
    Description: 
CoW prepares local dir using "reindexCount" from definition builder. BUT, while re-indexing, at the time of construction of {{LuceneIndexEditorContext}}, the builder still has *non*-incremented reindexCount ({{IndexUpdate#collectIndexEditors}}) thereby updating the already existing directory.

On windows, this often leads to deletion inside lucene to fail thereby failing re-index and leading to reindex loop.

That being said, this might be able to corrupt locally copied index.

  was:
CoW prepares local dir using "reindexCount" from definition builder. BUT, while re-indexing, at the time of construction of {{LuceneIndexEditorContext}}, the builder still has *non*-incremented reindexCount ({{IndexUpdate#collectIndexEditors}} thereby updating the already existing directory.

On windows, this often leads to deletion inside lucene to fail thereby failing re-index and leading to reindex loop.

That being said, this might be able to corrupt locally copied index.


> CoW uses incorrect directory on re-indexing when indexPath property is used
> ---------------------------------------------------------------------------
>
>                 Key: OAK-4024
>                 URL: https://issues.apache.org/jira/browse/OAK-4024
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Vikas Saurabh
>            Assignee: Vikas Saurabh
>
> CoW prepares local dir using "reindexCount" from definition builder. BUT, while re-indexing, at the time of construction of {{LuceneIndexEditorContext}}, the builder still has *non*-incremented reindexCount ({{IndexUpdate#collectIndexEditors}}) thereby updating the already existing directory.
> On windows, this often leads to deletion inside lucene to fail thereby failing re-index and leading to reindex loop.
> That being said, this might be able to corrupt locally copied index.



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