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 2016/12/05 06:15:58 UTC

[jira] [Created] (OAK-5219) Reindexing for async indexes should only be done when IndexUpdate is running in async mode

Chetan Mehrotra created OAK-5219:
------------------------------------

             Summary: Reindexing for async indexes should only be done when IndexUpdate is running in async mode
                 Key: OAK-5219
                 URL: https://issues.apache.org/jira/browse/OAK-5219
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: query
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
             Fix For: 1.6


Currently any commit involving IndexUpdate consider an index for reindexing if

* Reindex flag is true
* OR before state is not there

This worked fine before hybrid indexes as pure async indexes were not considered for update for sync commits. However with hybrid indexes such async indexes also participate in sync commit. However in such cases they are only meant to perform incremental indexing and not handle the reindex case. So IndexUpdate should only consider an index for reindexing if 

* IndexUpdate is in async mode i.e. async != null and index has async flag set






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