You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/06/03 17:00:00 UTC
[jira] [Updated] (HDDS-13035) Snapshot Deleting Service should hold write locks while purging deleted snapshots
[ https://issues.apache.org/jira/browse/HDDS-13035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDDS-13035:
----------------------------------
Labels: pull-request-available (was: )
> Snapshot Deleting Service should hold write locks while purging deleted snapshots
> ---------------------------------------------------------------------------------
>
> Key: HDDS-13035
> URL: https://issues.apache.org/jira/browse/HDDS-13035
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Swaminathan Balachandran
> Assignee: Swaminathan Balachandran
> Priority: Major
> Labels: pull-request-available
>
> Currently SnapshotDeletingService waits for KeyDeletingService & DirectoryDeletingService to finish before it starts to move entries from the deleted snapshot to the next snapshot in the chain. With ReclaimableFilter implementation both KeyDeletingService & DirectoryDeletingService are going to hold read locks on the previous snapshot in the chain. Now before processing a deleted snapshot the snapshot deleting service can just acquire write locks on the deleted snapshot and next snapshot in the chain which would prevent any parallel instance of KeyDeletingService or DirectoryDeletingService running on an inconsistent state of the snapshot.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org