Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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
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
Now delete one snapshot and list again before snapshot deleting service does the garbage collection:
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
It returns error message instead of simply ignoring the deleted snapshot.
Attachments
Issue Links
- links to