You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2010/02/10 17:27:28 UTC
[jira] Updated: (LUCENE-2259) add
IndexWriter.removeUnferencedFiles, so apps can more immediately delete
index files when readers are closed
[ https://issues.apache.org/jira/browse/LUCENE-2259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-2259:
---------------------------------------
Attachment: LUCENE-2259.patch
Attached patch.
I named the method deleteUnusedFiles. Also, when an NRT reader is closed, I call that method.
> add IndexWriter.removeUnferencedFiles, so apps can more immediately delete index files when readers are closed
> --------------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-2259
> URL: https://issues.apache.org/jira/browse/LUCENE-2259
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Index
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: LUCENE-2259.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org