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

CoW uses incorrect directory on re-indexing when indexPath property is used

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.30, 1.2.14, 1.4, 1.4.0
    • lucene
    • None

    Description

      CoW prepares local dir using "reindexCount" from definition builder. BUT, while re-indexing, at the time of construction of LuceneIndexEditorContext, the builder still has non-incremented reindexCount (IndexUpdate#collectIndexEditors) thereby updating the already existing directory.

      On windows, this often leads to deletion inside lucene to fail thereby failing re-index and leading to reindex loop – this can be worked around by disabling CoW temporarily.

      That being said, this might be able to corrupt locally copied index.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            chetanm Chetan Mehrotra
            catholicon Vikas Saurabh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment