[ https://issues.apache.org/jira/browse/HDDS-10057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Andika updated HDDS-10057: ------------------------------- Fix Version/s: 2.0.0 (was: 1.4.0) > Snapshot: 'ozone fs -ls' on '.snapshot' dir of a bucket should list only > active snapshots > ----------------------------------------------------------------------------------------- > > Key: HDDS-10057 > URL: https://issues.apache.org/jira/browse/HDDS-10057 > Project: Apache Ozone > Issue Type: Improvement > Reporter: Hemant Kumar > Assignee: Hemant Kumar > Priority: Major > Labels: pull-request-available > Fix For: 2.0.0 > > > ozone fs -ls throws an error for listing a deleted snapshot which is not > garbage collected and deleted completely. > Steps to reproduce: > Create two snapshots with some keys in it and list them > {code:java} > sh-4.2$ ozone fs -ls -R ofs://om/vol1/bucket1/.snapshot| grep -i key > -rw-rw-rw- 1 hadoop hadoop 4068 2024-01-04 00:38 > ofs://om/vol1/bucket1/.snapshot/snap1/key1 > -rw-rw-rw- 1 hadoop hadoop 4068 2024-01-04 00:38 > ofs://om/vol1/bucket1/.snapshot/snap2/key1 > -rw-rw-rw- 1 hadoop hadoop 4068 2024-01-04 00:39 > ofs://om/vol1/bucket1/.snapshot/snap2/key2 > {code} > Now delete one snapshot and list again before snapshot deleting service does > the garbage collection: > {code:java} > sh-4.2$ ozone fs -ls -R ofs://om/vol1/bucket1/.snapshot| grep -i key > -rw-rw-rw- 1 hadoop hadoop 4068 2024-01-04 00:38 > ofs://om/vol1/bucket1/.snapshot/snap1/key1 > ls: Unable to load snapshot. Snapshot with table key '/vol1/bucket1/snap2' is > no longer active > {code} > It returns error message instead of simply ignoring the deleted snapshot. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org