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

Chetan Mehrotra edited comment on OAK-6453 at 8/18/17 6:03 AM:
---------------------------------------------------------------

Good stuff! Given it supports setups way back to 1.0

bq.  It seems 1.0.* don't have CheckpointManager mbean. I worked around it by 
creating one by NodeStore api. Do we want to do something about it?

Yes 1.0 did not had that. For now lets claim support till 1.2.

* For 1.6 we need to set "uid" property (timestamp) in ":status" node (see 
usage in LuceneIndexEditorContext#configureUniqueId) otherwise copy-on-read 
logic would fallback to old mode (using reindex count) for copying files. So 
just set such a property prior to commit. This can be done irrespective of Oak 
version. For older setup it would not be reead






was (Author: chetanm):
Good stuff! Given it supports setups way back to 1.0

bq.  It seems 1.0.* don't have CheckpointManager mbean. I worked around it by 
creating one by NodeStore api. Do we want to do something about it?

Yes 1.0 did not had that. For now lets claim support till 1.2.

* For 1.6 we need to set "uid" property (timestamp) in ":status" node otherwise 
copy-on-read logic would fallback to old mode (using reindex count) for copying 
files. So just set such a property prior to commit. This can be done 
irrespective of Oak version. For older setup it would not be reead





> Script to import oak-run generated indexing to older Oak setup
> --------------------------------------------------------------
>
>                 Key: OAK-6453
>                 URL: https://issues.apache.org/jira/browse/OAK-6453
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: indexing, run
>            Reporter: Chetan Mehrotra
>            Assignee: Vikas Saurabh
>              Labels: docs-impacting
>             Fix For: 1.8
>
>         Attachments: IndexImportScript.groovy
>
>
> The indexing tooling implemented in OAK-6081 can be used to perform reindex 
> and import the indexes for any Oak 1.7+ setups. For older setups we would be 
> using 2 phase approach
> # Perform [out-of-band 
> indexing|https://jackrabbit.apache.org/oak/docs/query/oak-run-indexing.html#out-of-band-indexing].
>  This can be done via oak-run from 1.7.x against any older version of Oak
> # Import index - For this step we cannot use oak-run from trunk for older 
> branches as write operations would not be compatible with older version of 
> Oak. 
> For import then we have 2 options either 
> # backport all the work in OAK-6271 to older branch 
> # OR implement a script which can be used with oak-run or Felix Script 
> Console to just import the lucene index with any other manual step
> Purpose of this task is to implement such a script



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to