You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2019/03/26 14:59:00 UTC
[jira] [Resolved] (LUCENE-8735) FileAlreadyExistsException after
opening old commit
[ https://issues.apache.org/jira/browse/LUCENE-8735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Willnauer resolved LUCENE-8735.
-------------------------------------
Resolution: Fixed
Assignee: Simon Willnauer
Fix Version/s: 7.7.1
8.1
8.0.1
7.7.2
> FileAlreadyExistsException after opening old commit
> ---------------------------------------------------
>
> Key: LUCENE-8735
> URL: https://issues.apache.org/jira/browse/LUCENE-8735
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/store
> Affects Versions: 8.0
> Reporter: Henning Andersen
> Assignee: Simon Willnauer
> Priority: Major
> Fix For: 7.7.2, 8.0.1, 8.1, master (9.0), 7.7.1
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> FilterDirectory.getPendingDeletes() does not delegate calls. This in turn means that IndexFileDeleter does not consider those as relevant files.
> When opening an IndexWriter for an older commit, excess files are attempted deleted. If an IndexReader exists using one of the newer commits, the excess files may fail to delete (at least on windows or when using the mocking WindowsFS).
> If then closing and opening the IndexWriter, the information on the pending deletes are gone if a FilterDirectory derivate is used. At the same time, the pending deletes are filtered out of listAll. This leads to a risk of hitting an existing file name, causing a FileAlreadyExistsException.
> This issue likely only exists on windows.
> Will create pull request with fix.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org