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

Chetan Mehrotra commented on OAK-2598:
--------------------------------------

bq. wouldn't it be easier to tweak the definitions before running the upgrade 
and remove the async markers, then post migration you can add them back in

I thought about that. To make it automatic you would need to find out such 
nodes and modify the property before running the migration and then again query 
for such nodes after running the migration. For this we would need to add index 
for {{oak:QueryIndexDefinition}}. Doing all that looked quite a bit of effort 
so tend to take the above shortcut ;)

But yes I think that would be more cleaner approach

bq. one thing to worry about is the checkpoint reference that the async indexer 
uses

Missed that part. So any such support should also seed in the checkpoint. 



> Provide option to run async index as sync in repository upgrade
> ---------------------------------------------------------------
>
>                 Key: OAK-2598
>                 URL: https://issues.apache.org/jira/browse/OAK-2598
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: upgrade
>            Reporter: Chetan Mehrotra
>             Fix For: 1.1.8, 1.0.13
>
>
> Currently when performing repository upgrade from JR2 to Oak the migration 
> logic only runs the synchronous index editors. Async indexes like Lucene/Solr 
> are run post migration after the system start.
> Given that migration is a single threaded operation it would at times be 
> helpful to allow executing such async indexes in sync mode during migration 
> phase. This would avoid rescanning of complete repository again for such 
> async indexes



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

Reply via email to