You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Philipp Shergalis (Jira)" <ji...@apache.org> on 2025/01/29 09:16:00 UTC
[jira] [Updated] (IGNITE-24337) Don't throw NoSuchFileException in IgniteUtils.deleteIfExistsThrowable
[ https://issues.apache.org/jira/browse/IGNITE-24337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philipp Shergalis updated IGNITE-24337:
---------------------------------------
Description: It is definitely not correct that deleteIfExists method throws error if the directory doesn't exist. Checking if file exists before calling this method is race-prone (it could get deleted by another thread after this check)
> Don't throw NoSuchFileException in IgniteUtils.deleteIfExistsThrowable
> ----------------------------------------------------------------------
>
> Key: IGNITE-24337
> URL: https://issues.apache.org/jira/browse/IGNITE-24337
> Project: Ignite
> Issue Type: Improvement
> Reporter: Philipp Shergalis
> Assignee: Philipp Shergalis
> Priority: Major
> Labels: ignite-3
>
> It is definitely not correct that deleteIfExists method throws error if the directory doesn't exist. Checking if file exists before calling this method is race-prone (it could get deleted by another thread after this check)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)