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

Reindexing Strategy for ES indexes

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.30.0
    • indexing
    • None

    Description

      There are two approaches for handling re-indexing of ES indexes.

      The simpler strategy would be to:

      • create the new index
      • move writes and reads to the new index
      • delete old index

      A more sophisticated strategy could:

      • create the new index
      • move writes to the new index
      • reads will continue to use the old index until the new one catches up
      • when the new one is in sync, move reads to the new index & delete the old one

      Both strategies can be implemented using Aliases in Elasticsearch to avoid race conditions. To implement the second solution we need something that tells us when the new index has caught up with the initial load.

      Attachments

        1. OAK-9053-new.patch
          16 kB
          Amrit Verma

        Issue Links

          Activity

            People

              Unassigned Unassigned
              amrverma Amrit Verma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: