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

Keep Lucene Commits so that if the Segments file gets corrupted recovery can be attempted.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.6.0
    • Fix Version/s: None
    • Component/s: lucene
    • Labels:
      None

      Description

      Currently, Lucene deletes all previous generations of the segments files as it has it uses the default IndexDeletionPolicy. Changing this to an IndexDeletionPolicy that keeps a number of previous segments files will allow an operator to find the most recent valid commit when the current segments file reports corruption. The patch found at https://github.com/apache/jackrabbit-oak/compare/trunk...ieb:KeepLuceneCommits keeps 10 previous commits.

      A more sophisticated policy could be used to save commits non-linearly over time.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chetanm Chetan Mehrotra
                Reporter:
                ianeboston Ian Boston
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: