Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Code
-
Low
-
Low Hanging Fruit
-
Adhoc Test
-
All
-
None
-
Description
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.
Attachments
Issue Links
- relates to
-
CASSANDRA-18271 Centralize all snapshot operations to SnapshotManager
- Resolved