Hemant Kumar created HDDS-10057:
-----------------------------------

             Summary: Snapshot: Ozone fs -ls command doesn't deleted snapshot
                 Key: HDDS-10057
                 URL: https://issues.apache.org/jira/browse/HDDS-10057
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Hemant Kumar


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to