Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2259

add IndexWriter.removeUnferencedFiles, so apps can more immediately delete index files when readers are closed

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • core/index
    • None
    • New

    Description

      This has come up several times on the user's list.

      On Windows, which prevents deletion of still-open files, IndexWriter cannot remove files that are in-use by open IndexReaders. This is fine, and IndexWriter periodically retries the delete, but it doesn't retry very often (only on open, on flushing a new segment, and on committing a merge). So it lacks immediacy.

      With this expert method, apps that want faster deletion can call this method.

      Attachments

        1. LUCENE-2259.patch
          5 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: