Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-10399

Automatically pick a merged index over multiple levels

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.58.0
    • query
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              thomasm Thomas Mueller
              thomasm Thomas Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: