Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6471 Support adding or updating index definitions via oak-run
  3. OAK-6487

IndexUpdate should not reindex newly imported index definitions

    XMLWordPrintableJSON

Details

    • Technical task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.5, 1.8.0
    • indexing
    • None

    Description

      IndexUpdate currently decides to reindex any index which is not found in before state i.e. state corresponding to the last checkpointed state. This was done to support cases like OAK-1874 where a new index may not have reindex flag set to true.

      For importing new indexed definitions i.e. where indexing is already done out-of-band by oak-run this poses problem as this new index definition would not be present in before state.

      To account for that this logic should be changed to check if the new index definition is already indexed or not. This can be checked by checking for presence of any hidden node under index definitions. If present then it means that index is already indexed so no need to reindex

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: