You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Jyotirmoy Sinha (Jira)" <ji...@apache.org> on 2023/02/07 10:03:00 UTC

[jira] [Updated] (HDDS-7914) [snapshot] Keys pertaining to deleted snapshot are still accessible through fs -ls.

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

Jyotirmoy Sinha updated HDDS-7914:
----------------------------------
    Labels: ozone-snapshot  (was: snapshot)

> [snapshot] Keys pertaining to deleted snapshot are still accessible through fs -ls.
> -----------------------------------------------------------------------------------
>
>                 Key: HDDS-7914
>                 URL: https://issues.apache.org/jira/browse/HDDS-7914
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone Manager
>            Reporter: Jyotirmoy Sinha
>            Priority: Major
>              Labels: ozone-snapshot
>
> Keys pertaining to deleted snapshot are still accessible through fs -ls.
> {code:java}
> bash-4.2$ ozone sh snapshot delete vol1/buck1 snap4
> bash-4.2$ ozone sh snapshot ls vol1/buck1
> [ {
>   "volumeName" : "vol1",
>   "bucketName" : "buck1",
>   "name" : "snap1",
>   "creationTime" : 1675762737085,
>   "snapshotStatus" : "SNAPSHOT_DELETED",
>   "snapshotID" : "47c9566f-f936-4ae0-a8ea-2eebf90ef8a3",
>   "snapshotPath" : "vol1/buck1",
>   "checkpointDir" : "-47c9566f-f936-4ae0-a8ea-2eebf90ef8a3"
> }, {
>   "volumeName" : "vol1",
>   "bucketName" : "buck1",
>   "name" : "snap2",
>   "creationTime" : 1675762805211,
>   "snapshotStatus" : "SNAPSHOT_ACTIVE",
>   "snapshotID" : "3ef730ef-90a7-4ce3-a76f-f766fcd64e1e",
>   "snapshotPath" : "vol1/buck1",
>   "checkpointDir" : "-3ef730ef-90a7-4ce3-a76f-f766fcd64e1e"
> }, {
>   "volumeName" : "vol1",
>   "bucketName" : "buck1",
>   "name" : "snap3",
>   "creationTime" : 1675763112780,
>   "snapshotStatus" : "SNAPSHOT_ACTIVE",
>   "snapshotID" : "e3f0ef8b-5396-4b1d-afe7-1a64279967e5",
>   "snapshotPath" : "vol1/buck1",
>   "checkpointDir" : "-e3f0ef8b-5396-4b1d-afe7-1a64279967e5"
> }, {
>   "volumeName" : "vol1",
>   "bucketName" : "buck1",
>   "name" : "snap4",
>   "creationTime" : 1675763223154,
>   "snapshotStatus" : "SNAPSHOT_DELETED",
>   "snapshotID" : "9d3b12e0-a2a2-4bc2-b733-8b7d6e14aef3",
>   "snapshotPath" : "vol1/buck1",
>   "checkpointDir" : "-9d3b12e0-a2a2-4bc2-b733-8b7d6e14aef3"
> } ]
> bash-4.2$ ozone sh snapshot delete vol1/buck1 snap4
> FILE_NOT_FOUND Snapshot is already deleted. Pending reclamation.
> bash-4.2$
> bash-4.2$ ozone fs -ls /vol1/buck1/.snapshot/snap4
> Found 1 items
> -rw-rw-rw-   3 hadoop hadoop       3879 2023-02-07 09:46 /vol1/buck1/.snapshot/snap4/key1{code}



--
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