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 2018/08/07 19:20:00 UTC

[jira] [Comment Edited] (OAK-7686) Partial migration doesn't update Lucene indexing data

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

Vikas Saurabh edited comment on OAK-7686 at 8/7/18 7:19 PM:
------------------------------------------------------------

[~tomek.rekawek]
bq. Because there's no LuceneIndexEditorProvider included there, some index definitions can't be processed, producing an log message Missing index provider of type [lucene].
Since "lucene" indexes have {{async=XYZ}}, I think {{IndexUpdate}} \[0] instantiated with async=null would care about them. The only reason I could think of {{IndexUpdate}} caring about lucene indexes is if they have "sync" or "nrt" configured in "async" property.

A simple test for this is that the indexes that log the warning in description won't have any index with simple {{async=["async"]}} (e.g. most likely /oak:index/lucene). (*EDIT*: sample log from a partial sidegrade on an AEM repository \[1] which doesn't set reindex on /oak:index/lucene)

If that "guess" turns out to be true, the I think the right solution would be that {{IndexUpdate}} shouldn't try to set "reindex=true" for updates it's trying for "nrt"/"sync".

About up/sidegrade indeed updating lucene indexes should be a separate issue imo.

\[0]: https://github.com/apache/jackrabbit-oak/blob/9db5053c83cb4cbe3ab5516c87364e057ec3c8ef/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositoryUpgrade.java#L624

\[1]:
{noformat}
....
....
22.07.2018 19:30:41.093 [main] *INFO*  org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade - Processing commit via EditorHook : (CompositeEditorProvider : ([TypeEditorProvider, IndexEditorProvider]))
22.07.2018 19:30:41.105 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Missing index provider of type [lucene], requesting reindex on [/oak:index/workflowDataLucene]
22.07.2018 19:30:41.105 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Missing index provider of type [lucene], requesting reindex on [/oak:index/slingeventJob]
22.07.2018 19:30:41.106 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Missing index provider of type [lucene], requesting reindex on [/oak:index/versionStoreIndex]
22.07.2018 19:30:41.106 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Missing index provider of type [lucene], requesting reindex on [/oak:index/commerceLucene]
22.07.2018 19:30:41.106 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Missing index provider of type [lucene], requesting reindex on [/oak:index/authorizables]
22.07.2018 19:30:41.106 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Missing index provider of type [lucene], requesting reindex on [/oak:index/cqProjectLucene]
22.07.2018 19:30:41.107 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Missing index provider of type [lucene], requesting reindex on [/oak:index/ntBaseLucene]
22.07.2018 19:30:41.108 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Missing index provider of type [lucene], requesting reindex on [/oak:index/cqTagLucene]
22.07.2018 19:30:41.108 [main] *WARN*  org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Missing index provider of type [lucene], requesting reindex on [/oak:index/cqPageLucene]
22.07.2018 19:30:41.113 [main] *INFO*  org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade - Updating indexes   __        __
....
....
{noformat}


was (Author: catholicon):
[~tomek.rekawek]
bq. Because there's no LuceneIndexEditorProvider included there, some index definitions can't be processed, producing an log message Missing index provider of type [lucene].
Since "lucene" indexes have {{async=XYZ}}, I think {{IndexUpdate}} \[0] instantiated with async=null would care about them. The only reason I could think of {{IndexUpdate}} caring about lucene indexes is if they have "sync" or "nrt" configured in "async" property.

A simple test for this is that the indexes that log the warning in description won't have any index with simple {{async=["async"]}} (e.g. most likely /oak:index/lucene).

If that "guess" turns out to be true, the I think the right solution would be that {{IndexUpdate}} shouldn't try to set "reindex=true" for updates it's trying for "nrt"/"sync".

About up/sidegrade indeed updating lucene indexes should be a separate issue imo.

\[0]: https://github.com/apache/jackrabbit-oak/blob/9db5053c83cb4cbe3ab5516c87364e057ec3c8ef/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositoryUpgrade.java#L624

> 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)