You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefan Miklosovic (Jira)" <ji...@apache.org> on 2023/02/01 10:42:00 UTC

[jira] [Updated] (CASSANDRA-18211) Possible race between automatic and manual snapshot cleanup

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

Stefan Miklosovic updated CASSANDRA-18211:
------------------------------------------
     Bug Category: Parent values: Code(13163)
       Complexity: Low Hanging Fruit
    Discovered By: Adhoc Test
    Fix Version/s: 4.1.x
                   4.x
         Severity: Low
         Assignee: Stefan Miklosovic  (was: Jacek Lewandowski)
           Status: Open  (was: Triage Needed)

> Possible race between automatic and manual snapshot cleanup
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-18211
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18211
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local/Snapshots
>            Reporter: Jacek Lewandowski
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.1.x, 4.x
>
>
> Automatic deletion of expired snapshots maintained by {{SnapshotManager}} can race with manual snapshot removal in a way an exception like {{NoSuchFileException}} is thrown. 
> It is because the snapshot directory existence is checked and deleted if it exists as a non-atomic operation. Since we can potentially have two threads attempting to do that at the same time (automatic and manual snapshot removal) it may lead to a race in rare situations.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org