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

Reindexing for async indexes should only be done when IndexUpdate is running in async mode

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.15, 1.6.0
    • Component/s: query
    • Labels:
      None

      Description

      Currently any commit involving IndexUpdate consider an index for reindexing if

      • Reindex flag is true
      • OR before state is not there

      This worked fine before hybrid indexes as pure async indexes were not considered for update for sync commits. However with hybrid indexes such async indexes also participate in sync commit. However in such cases they are only meant to perform incremental indexing and not handle the reindex case. So IndexUpdate should only consider an index for reindexing if

      • IndexUpdate is in async mode i.e. async != null and index has async flag set

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: