Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4808 Index external changes as part of NRT indexing
  3. OAK-5176

Allow configuring ignoreReindexFlags on per IndexUpdate basis

    XMLWordPrintableJSON

    Details

    • Type: Technical task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.15, 1.6.0
    • Component/s: core
    • Labels:
      None

      Description

      Currently IndexUpdate provides a system property oak.indexUpdate.ignoreReindexFlags to ignore reindex flag on global basis.

      For indexing external changes as part of hybrid index we need a way to disable reindex handling for per IndexUpdate basis i.e. for IndexUpdate used for indexing external change the ignoreReindexFlags would need to be set to true. This would ensure that for hybrid index case reindex logic is disabled and only incremental indexing is done.

      This would also provide a benefit where in case an index is being reindexed the hybrid index would still get updated with incremental indexing. Currently if reindexing happens then whole async index cycle waits for reindex to complete. Due to this any new change to system in between does not get indexed and query results become stale. With hybrid index and ignoring of reindex flag the local index would still receive updates and search results would not get stale

        Attachments

        1. OAK-5176-v1.patch
          6 kB
          Chetan Mehrotra

          Activity

            People

            • Assignee:
              chetanm Chetan Mehrotra
              Reporter:
              chetanm Chetan Mehrotra
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: