[jira] [Commented] (OAK-10399) Automatically pick a merged index over multiple levels

2023-09-28 Thread Julian Reschke (Jira)


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

Julian Reschke commented on OAK-10399:
--

trunk: 
[77f36b3252|https://github.com/apache/jackrabbit-oak/commit/77f36b32529fcfee3bc6ca101316e5a66b699933]
 (1.56.0) 
[1d50d20bd6|https://github.com/apache/jackrabbit-oak/commit/1d50d20bd6899d8852430a136243544008154ba0]
 
[81e49e5f8d|https://github.com/apache/jackrabbit-oak/commit/81e49e5f8d14c2791a72ed61f2577c223452a207]
 
[79bd999aef|https://github.com/apache/jackrabbit-oak/commit/79bd999aef74875a77d48c0bfbc1ba1afdc33942]
 
[921467d8ef|https://github.com/apache/jackrabbit-oak/commit/921467d8ef154c5cd5418fbbb98c08a1b74b50d6]


> Automatically pick a merged index over multiple levels
> --
>
> Key: OAK-10399
> URL: https://issues.apache.org/jira/browse/OAK-10399
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: query
>Reporter: Thomas Mueller
>Assignee: Thomas Mueller
>Priority: Major
> Fix For: 1.58.0
>
>
> When using the composite node store for blue-green deployments, multiple 
> versions of a index can exist at the same time, for a short period of time 
> (while both blue and green are running at the same time). In OAK-9301 we 
> support merged indexes.
> What we don't support currently is merged indexes over multiple levels. 
> Example:
> * /oak:index/index-1 (first version of the index)
> * /oak:index/index-1-custom-1 (customization of that index)
> * /oak:index/index-2 (new base version)
> * /oak:index/index-2-custom-1 (auto-merged index)
> * /oak:index/index-3 (the second new base version)
> * /oak:index/index-3-custom-1 (auto-merged index)
> In this case, index-3 is used for queries, instead of index-3-custom-1.
> The reason is the following: whenever we auto-merge, we set the merges 
> property to the previous base version, and the previous customization. This 
> works well for index-2-custom-1, but doesn't work for index-3-custom-1.
> We need to change the index picking algorithm, such that only one level of 
> base indexes is checked: only the existence of index-3. The existence of 
> index-2 must not be checked. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (OAK-10399) Automatically pick a merged index over multiple levels

2023-08-14 Thread Thomas Mueller (Jira)


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

Thomas Mueller commented on OAK-10399:
--

PR https://github.com/apache/jackrabbit-oak/pull/1066

> Automatically pick a merged index over multiple levels
> --
>
> Key: OAK-10399
> URL: https://issues.apache.org/jira/browse/OAK-10399
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: query
>Reporter: Thomas Mueller
>Priority: Major
>
> When using the composite node store for blue-green deployments, multiple 
> versions of a index can exist at the same time, for a short period of time 
> (while both blue and green are running at the same time). In OAK-9301 we 
> support merged indexes.
> What we don't support currently is merged indexes over multiple levels. 
> Example:
> * /oak:index/index-1 (first version of the index)
> * /oak:index/index-1-custom-1 (customization of that index)
> * /oak:index/index-2 (new base version)
> * /oak:index/index-2-custom-1 (auto-merged index)
> * /oak:index/index-3 (the second new base version)
> * /oak:index/index-3-custom-1 (auto-merged index)
> In this case, index-3 is used for queries, instead of index-3-custom-1.
> The reason is the following: whenever we auto-merge, we set the merges 
> property to the previous base version, and the previous customization. This 
> works well for index-2-custom-1, but doesn't work for index-3-custom-1.
> We need to change the index picking algorithm, such that only one level of 
> base indexes is checked: only the existence of index-3. The existence of 
> index-2 must not be checked. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)