jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nitin Gupta (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OAK-9449) Any new (elastic) index def added after Out of the band reindexing will trigger reindexing when the async cycle will run the first index update
Date Tue, 01 Jun 2021 16:32:00 GMT

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

Nitin Gupta commented on OAK-9449:
----------------------------------

[https://svn.apache.org/viewvc?view=revision&revision=1890367] 

> Any new (elastic) index def added after Out of the band reindexing will trigger reindexing
when the async cycle will run the first index update
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-9449
>                 URL: https://issues.apache.org/jira/browse/OAK-9449
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>            Reporter: Nitin Gupta
>            Assignee: Nitin Gupta
>            Priority: Major
>
> When we will do an Out of band indexing for any elastic index , it will create the remote
elastic index.
> And then we need to apply the index def to the node store in a separate step.
>  
> However, once the oak process will observe this new change, it will trigger a reindex
on this newly added index because of logic at [0]. This is wrong, since this reindex in not
needed.
> In case of a newly added lucene index, there are hidden nodes such as  :data which according
to the logic at [0] prevents it from getting reindexed. 
>  
> However any newly added elastic index from Out Of the Band indexer does not have any
such hidden nodes (because it doesn't store the indexed data locally like lucene), so it leads
to reindexing.
>  
>  
> [0]: [https://github.com/oak-indexing/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexUpdate.java#L235#L251]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message