jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomek Rękawek (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-7686) Partial migration doesn't update Lucene indexing data
Date Tue, 07 Aug 2018 15:30:00 GMT

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

Tomek Rękawek commented on OAK-7686:
------------------------------------

OK, let me elaborate a bit. The partial migration (eg. the one copying only /content/mysite/xyz
from repo A to repo B) performed with oak-upgrade ends with a repoB.merge() invocation. The
commit hooks passed to this invocation includes {{CompositeIndexEditorProvider}} that consists
of two IndexEditorProviders:

* ReferenceEditorProvider
* PropertyIndexEditorProvider

See the following methods for more details:

* [RepositorySidegrade#migrateWithoutCheckpoints|https://github.com/apache/jackrabbit-oak/blob/9db5053c83cb4cbe3ab5516c87364e057ec3c8ef/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositorySidegrade.java#L434-L438]
* [RepositoryUpgrade#createIndexEditorProvider|https://github.com/apache/jackrabbit-oak/blob/9db5053c83cb4cbe3ab5516c87364e057ec3c8ef/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositoryUpgrade.java#L615-L643]

Because there's no LuceneIndexEditorProvider included there, some index definitions can't
be processed, producing an log message {{Missing index provider of type [lucene]}}. This log
message is displayed during the migration. Apparently, the fallback for such case is requesting
a full reindexing on given index, which is something we'd like to avoid.

I think that including the LuceneIndexEditorProvider would be enough to fix this. WDYT?

> Partial migration doesn't update Lucene indexing data
> -----------------------------------------------------
>
>                 Key: OAK-7686
>                 URL: https://issues.apache.org/jira/browse/OAK-7686
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: upgrade
>            Reporter: Tomek Rękawek
>            Priority: Major
>             Fix For: 1.10
>
>
> It seems that the LuceneIndexProvider is missing in the RepositorySidegrade index provider
list. As a result, for the partial migration, the lucene indexing data is not updated for
the copied content:
> {noformat}
> 25.07.2018 00:19:47.008 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate
- Missing index provider of type [lucene], requesting reindex on [/oak:index/slingeventJob]
> 25.07.2018 00:19:47.580 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate
- Missing index provider of type [lucene], requesting reindex on [/oak:index/ntBaseLucene]
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message