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

Stefan Miklosovic commented on CASSANDRA-18211:
-----------------------------------------------

for completeness as there were minor review comments of Jacek

j8 4.1 
https://app.circleci.com/pipelines/github/instaclustr/cassandra/1907/workflows/db3f0a18-7ca6-4959-b2fa-e8cd65bc9be8
j11 4.1 
https://app.circleci.com/pipelines/github/instaclustr/cassandra/1907/workflows/5335b5d6-ac92-4662-962f-d67aac1df69e
j8 trunk 
https://app.circleci.com/pipelines/github/instaclustr/cassandra/1914/workflows/092628b4-f591-4f3c-ac66-6f63169dba3b
j11 trunk 
https://app.circleci.com/pipelines/github/instaclustr/cassandra/1914/workflows/36a33544-2e2e-46a3-acf0-748c504e5df4

4.1 branch https://github.com/apache/cassandra/pull/2149
trunk branch https://github.com/apache/cassandra/pull/2157

>  NoSuchFileException when removing a snapshot
> ---------------------------------------------
>
>                 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to