
jira at apache
Feb 10, 2010, 8:27 AM
Post #1 of 1
(227 views)
Permalink
|
|
[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 [at] lucene For additional commands, e-mail: java-dev-help [at] lucene
|