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

[jira] [Assigned] (HDDS-9431) [snapshot] Referenced and exclusive size not populated properly when snapshot is created after Trash deletion

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

Ritesh Shukla reassigned HDDS-9431:
-----------------------------------

    Assignee: Swaminathan Balachandran

> [snapshot] Referenced and exclusive size not populated properly when snapshot is created after Trash deletion
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-9431
>                 URL: https://issues.apache.org/jira/browse/HDDS-9431
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Snapshot
>            Reporter: Jyotirmoy Sinha
>            Assignee: Swaminathan Balachandran
>            Priority: Major
>              Labels: ozone-snapshot
>
> Steps :
>  # Create vol/buck/key
>  # Create snapshot snap1
>  # Delete key - moved inside .Trash
>  # Create snapshot snap2
>  # Delete .Trash of above bucket
>  # Create snapshot snap3
>  # Delete snapshot snap2
>  # Check referenced and exclusive size of snapshots
> Expected behaviour - Referenced size of snapshot snap3 should be 0, since it holds no keys. Exclusive size of snap1 should be equal to key size since its the only snapshot that holds the key.
> Observed behaviour - Referenced size of snapshot snap3 == snap1. Exclusive size of snapshot snap1 = 0
> Snapshot file contents -
> {code:java}
> # ozone fs -ls -R ofs://ozone1/vol2/buck2/.snapshot
> drwxrwxrwx   - om om        668 2023-10-11 07:21 ofs://ozone1/vol2/buck2/.snapshot/snap1
> -rw-rw-rw-   3 om om        668 2023-10-11 07:20 ofs://ozone1/vol2/buck2/.snapshot/snap1/key1
> drwxrwxrwx   - om om        668 2023-10-11 07:23 ofs://ozone1/vol2/buck2/.snapshot/snap3 {code}
> Snapshot info -
> {code:java}
> # ozone sh snapshot ls vol2/buck2
> [ {
>   "volumeName" : "vol2",
>   "bucketName" : "buck2",
>   "name" : "snap1",
>   "creationTime" : 1697008874359,
>   "snapshotStatus" : "SNAPSHOT_ACTIVE",
>   "snapshotId" : "5ad6b758-d293-498d-9fdc-a5697853da65",
>   "snapshotPath" : "vol2/buck2",
>   "checkpointDir" : "-5ad6b758-d293-498d-9fdc-a5697853da65",
>   "referencedSize" : 668,
>   "referencedReplicatedSize" : 2004,
>   "exclusiveSize" : 0,
>   "exclusiveReplicatedSize" : 0
> }, {
>   "volumeName" : "vol2",
>   "bucketName" : "buck2",
>   "name" : "snap3",
>   "creationTime" : 1697009036987,
>   "snapshotStatus" : "SNAPSHOT_ACTIVE",
>   "snapshotId" : "b9521b9c-0f6d-4208-993c-af66caf90c7b",
>   "snapshotPath" : "vol2/buck2",
>   "checkpointDir" : "-b9521b9c-0f6d-4208-993c-af66caf90c7b",
>   "referencedSize" : 668,
>   "referencedReplicatedSize" : 2004,
>   "exclusiveSize" : 0,
>   "exclusiveReplicatedSize" : 0
> } ] {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