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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.30, 1.2.14, 1.4, 1.4.0
    • Component/s: lucene
    • Labels:
      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.patch
          9 kB
          Vikas Saurabh
        2. OAK-4024-v2.patch
          10 kB
          Chetan Mehrotra

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: