Arun Sarin created HDDS-9143:
--------------------------------

             Summary: [Linked Bucket] Ozone bucket Info command output does not 
have key "link" 
                 Key: HDDS-9143
                 URL: https://issues.apache.org/jira/browse/HDDS-9143
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone CLI
            Reporter: Arun Sarin


Ozone bucket Info doesn’t print "link" value to as "true" or "false" for linked 
buckets, which IMO is an important metadata to be displayed in case of linked 
bucket.
{code:java}
[root@quasar-rsyvvc-1 ~]# ozone sh bucket list /voltest1
[ {
  "metadata" : { },
  "volumeName" : "voltest1",
  "name" : "buckettest1",
  "storageType" : "DISK",
  "versioning" : false,
  "usedBytes" : 0,
  "usedNamespace" : 0,
  "creationTime" : "2023-08-09T15:42:42.274Z",
  "modificationTime" : "2023-08-09T15:42:42.274Z",
  "sourcePathExist" : true,
  "quotaInBytes" : -1,
  "quotaInNamespace" : -1,
  "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
  "owner" : "hdfs",
  "link" : false
}, {
  "volumeName" : "voltest1",
  "bucketName" : "link-to-bucket1",
  "sourceVolume" : "voltest1",
  "sourceBucket" : "buckettest1",
  "creationTime" : "2023-08-09T15:42:47.714Z",
  "modificationTime" : "2023-08-09T15:42:47.714Z",
  "owner" : "hdfs"
} {code}
The second bucket [link-to-bucket1] here  is a linked bucket , that should have 
a metadata info as "link" : true

Steps to repro :
{code:java}
ozone sh volume create /voltest1
ozone sh bucket create /voltest1/buckettest1
ozone sh bucket link /voltest1/buckettest1 /voltest1/link-to-bucket1
ozone sh bucket link /voltest1/buckettest2 /voltest1/link-to-nonexistent-bucket
ozone sh bucket link /voltest1/buckettest2 
/voltest1/other-link-to-nonexistent-bucket
ozone sh bucket list /voltest  {code}



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