[
https://issues.apache.org/jira/browse/HDDS-7512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siyao Meng updated HDDS-7512:
-----------------------------
Affects Version/s: HDDS-6517-Snapshot
(was: 1.3.0)
> [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: Bug
> 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]