[ 
https://issues.apache.org/jira/browse/LUCENE-8318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16478777#comment-16478777
 ] 

ASF subversion and git services commented on LUCENE-8318:
---------------------------------------------------------

Commit b178321bd1b0198532f70e2413b1e7d935556042 in lucene-solr's branch 
refs/heads/branch_7x from [~simonw]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b178321 ]

LUCENE-8318: Ensure pending delete is not brought back on a try delete attempt

When renaming a file, `FSDirectory#rename` tries to delete the dest file
if it's in the pending deletes list. If that delete fails, it adds the
dest to the pending deletes list again. This causes the dest file to be
deleted later by `deletePendingFiles`.


> The dest file might be deleted later by FSDirectory#rename
> ----------------------------------------------------------
>
>                 Key: LUCENE-8318
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8318
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 7.4, master (8.0)
>            Reporter: Nhat Nguyen
>            Assignee: Simon Willnauer
>            Priority: Major
>         Attachments: LUCENE-8318.patch, LUCENE-8318.patch
>
>
> When renaming a file, `FSDirectory#rename` tries to delete the dest file if 
> it's in the pending deletes list. If that delete fails, it adds the dest to 
> the pending deletes list again. This causes the dest file to be deleted later 
> by `deletePendingFiles`.
> This was introduced by -LUCENE-8275.-



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to