[jira] [Updated] (LUCENE-8318) The dest file might be deleted later by FSDirectory#rename

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LUCENE-8318) The dest file might be deleted later by FSDirectory#rename

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/LUCENE-8318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nhat Nguyen updated LUCENE-8318:
--------------------------------
    Description:
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.-

  was:
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


> 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
>            Priority: Major
>
> 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: [hidden email]
For additional commands, e-mail: [hidden email]