[
https://issues.apache.org/jira/browse/LUCENE-5904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109665#comment-14109665
]
Robert Muir commented on LUCENE-5904:
-------------------------------------
Another real bug i think, in IndexFileDeleter (found by TestCrash)
IW crashes or something, and we have some leftover files (like _0.si, imagine
from an initial empty commit).
when we bootup a new IW, it tries to delete the trash, but for some reason
temporarily cannot delete _0.si. Then we go and flush real segment _0, only
afterwards IFD comes back around and deletes _0.si, which is now a legit file,
corrupting the index.
Its caused by the filename reuse problem (LUCENE-5903).
> Add MDW.enableVirusScanner / fix windows handling bugs
> ------------------------------------------------------
>
> Key: LUCENE-5904
> URL: https://issues.apache.org/jira/browse/LUCENE-5904
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Robert Muir
> Attachments: LUCENE-5904.patch, LUCENE-5904.patch, LUCENE-5904.patch,
> LUCENE-5904.patch, LUCENE-5904.patch
>
>
> IndexWriter has logic to handle the case where it can't delete a file (it
> puts in a retry list and indexfiledeleter will periodically retry, you can
> force this retry with deletePendingFiles).
> But from what I can tell, this logic is incomplete, e.g. its not properly
> handled during CFS creation, so if a file temporarily can't be deleted things
> like flush will fail.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]