You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Hemant Kumar (Jira)" <ji...@apache.org> on 2024/01/04 22:56:00 UTC

[jira] [Updated] (HDDS-10057) Snapshot: 'ozone fs -ls' on '.snapshot' dir of a bucket should list only active snapshots

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

Hemant Kumar updated HDDS-10057:
--------------------------------
    Summary: Snapshot: 'ozone fs -ls' on '.snapshot' dir of a bucket should list only active snapshots  (was: Snapshot: Ozone fs -ls command doesn't deleted snapshot)

> 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
>
> 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-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org