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

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

    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

        1. OAK-4024-v2.patch
          10 kB
          Chetan Mehrotra
        2. OAK-4024.patch
          9 kB
          Vikas Saurabh

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: