smengcl opened a new pull request, #4175: URL: https://github.com/apache/ozone/pull/4175
## What changes were proposed in this pull request? - Implement CLI `ozone sh snapshot delete`. - Implement Ratis Tx `OMSnapshotDeleteRequest`. - Improve CLI output for UX. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-6857 ## How was this patch tested? - [x] Add UT `TestOMSnapshotDeleteRequest`. - [ ] TODO: Finish UT `TestOMSnapshotDeleteResponse`. - [x] Tested manually in Docker locally: ```bash $ ozone fs -mkdir -p ofs://om/vol1/buck1/dir1/ $ ozone fs -put README.md ofs://om/vol1/buck1/dir1/ $ ozone sh snapshot create /vol1/buck1 snap1 $ ozone sh snapshot delete /vol1/buck1 snap1 $ ozone sh snapshot delete /vol1/buck1 snap1 FILE_NOT_FOUND Snapshot exists but no longer active $ ozone sh snapshot list /vol1/buck1 [ { "volumeName" : "vol1", "bucketName" : "buck1", "name" : "snap1", "creationTime" : 1673583279047, "snapshotStatus" : "SNAPSHOT_DELETED", "snapshotID" : "08f640e3-95db-4596-9d5f-a47cb7272329", "snapshotPath" : "vol1/buck1", "checkpointDir" : "-08f640e3-95db-4596-9d5f-a47cb7272329" } ] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
