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

Siyao Meng updated HDDS-6857:
-----------------------------
    Description: 
Snapshot delete through a Ratis transaction.

The Ratis tx moves the snapshot from ACTIVE state to DELETED.

This does not remove the snapshot's RocksDB checkpoint directory. That would be 
done by a new background service {{SnapshotDeletingTask}}, which would also 
move the snapshot to RECLAIMED state and eventually remove the snapshotInfo 
from the table and remove the snapshot DB checkpoint.

  was:
This Jira can be used to track all the tasks associated with Deleting a 
Snapshot.

Snapshot Delete would also be driven through a RATIS transaction.

This API should move Snapshot from Active State to Deleted State. We should not 
remove the Snapshot RocksDB checkpoint directory yet. 

There will be another background thread that should reclaim all the keys that 
will go orphan as part of Snapshot deletion.

The Snapshot should move to a deleted-and-reclaimed state only after all such 
would-be-orphan keys and their data blocks are deleted.

 

The design doc has details on how to identify would-be-orphan key-set when the 
snapshot gets deleted.


> [Snapshot] Implement Snapshot Delete CLI and API
> ------------------------------------------------
>
>                 Key: HDDS-6857
>                 URL: https://issues.apache.org/jira/browse/HDDS-6857
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Manager
>    Affects Versions: HDDS-6517-Snapshot
>            Reporter: Prashant Pogde
>            Assignee: Siyao Meng
>            Priority: Major
>
> Snapshot delete through a Ratis transaction.
> The Ratis tx moves the snapshot from ACTIVE state to DELETED.
> This does not remove the snapshot's RocksDB checkpoint directory. That would 
> be done by a new background service {{SnapshotDeletingTask}}, which would 
> also move the snapshot to RECLAIMED state and eventually remove the 
> snapshotInfo from the table and remove the snapshot DB checkpoint.



--
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