Rakesh Radhakrishnan created HDDS-6246:
------------------------------------------
Summary: Ozone sh key list on OBJECT_STORE bucket
Key: HDDS-6246
URL: https://issues.apache.org/jira/browse/HDDS-6246
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Rakesh Radhakrishnan
Assignee: Jyotinder Singh
*Expected behavior :* Listing keys in OBS bucket shouldn't have the
intermediate directories.
But the below commands shows interm directories.
"name" : "a/", "name" : "a/b/", "name" : "a/b/c/", "name" : "a/b/c/d/", Need
to remove these items from the output.
{code:java}
[root@sample-1 ~]# ozone sh bucket info vol1/obsbuck1
{
"metadata" : { },
"volumeName" : "vol1",
"name" : "obsbuck1",
"storageType" : "DISK",
"versioning" : false,
"usedBytes" : 69,
"usedNamespace" : 1,
"creationTime" : "2022-01-28T11:28:17.849Z",
"modificationTime" : "2022-01-28T11:28:17.849Z",
"quotaInBytes" : -1,
"quotaInNamespace" : -1,
"bucketLayout" : "OBJECT_STORE",
"link" : false
}
[root@sample-1 ~]# ozone sh key list vol1/obsbuck1 | grep "name"
"name" : "testroot/",
[root@sample-1 ~]# ozone sh key put vol1/obsbuck1/a/b/c/d/test.txt
/tmp/datafile
[root@sample-1 ~]# ozone sh key list vol1/obsbuck1 | grep "name"
"name" : "a/",
"name" : "a/b/",
"name" : "a/b/c/",
"name" : "a/b/c/d/",
"name" : "a/b/c/d/test.txt",
"name" : "testroot/",
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]