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

Siyao Meng updated HDDS-7512:
-----------------------------
        Parent: HDDS-6517
    Issue Type: Sub-task  (was: Bug)

> [snapshot] List Snapshot returns an empty list for a non-existent bucket
> ------------------------------------------------------------------------
>
>                 Key: HDDS-7512
>                 URL: https://issues.apache.org/jira/browse/HDDS-7512
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Manager
>    Affects Versions: HDDS-6517-Snapshot
>         Environment: docker-compose on HDDS-6517-Snapshot
> h4.
>            Reporter: Jyotirmoy Sinha
>            Assignee: Chung En Lee
>            Priority: Major
>              Labels: ozone-snapshot
>
> List Snapshot returns an empty list for a non-existent bucket
> {code:java}
> bash-4.2$ ozone sh bucket list vol1
> [ {
>   "metadata" : { },
>   "volumeName" : "vol1",
>   "name" : "buck1",
>   "storageType" : "DISK",
>   "versioning" : false,
>   "usedBytes" : 52617,
>   "usedNamespace" : 1,
>   "creationTime" : "2022-11-18T10:37:56.817Z",
>   "modificationTime" : "2022-11-18T10:37:56.817Z",
>   "quotaInBytes" : -1,
>   "quotaInNamespace" : -1,
>   "bucketLayout" : "LEGACY",
>   "owner" : "hadoop",
>   "link" : false
> }, {
>   "metadata" : { },
>   "volumeName" : "vol1",
>   "name" : "buck2",
>   "storageType" : "DISK",
>   "versioning" : false,
>   "usedBytes" : 31701,
>   "usedNamespace" : 1,
>   "creationTime" : "2022-11-18T10:39:00.672Z",
>   "modificationTime" : "2022-11-18T10:39:00.672Z",
>   "quotaInBytes" : -1,
>   "quotaInNamespace" : -1,
>   "bucketLayout" : "LEGACY",
>   "owner" : "hadoop",
>   "link" : false
> } ]
> bash-4.2$ ozone sh snapshot ls vol1/buck3
> [ ] {code}
> Expected response - An error should be thrown stating the bucket is 
> non-existent



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