[
https://issues.apache.org/jira/browse/HDDS-9144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Devesh Kumar Singh resolved HDDS-9144.
--------------------------------------
Release Note: This JIRA is invalid.
Resolution: Invalid
> [Linked Buckets] No check on source volume/bucket while creating links
> ----------------------------------------------------------------------
>
> Key: HDDS-9144
> URL: https://issues.apache.org/jira/browse/HDDS-9144
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone CLI
> Reporter: Arun Sarin
> Assignee: Devesh Kumar Singh
> Priority: Minor
> Labels: pull-request-available
>
> [Linked Buckets] No check on source volume/bucket while creating bucket links.
> While creating a bucket link , there is no check to validate volume / bucket
> exist or path is valid .
> But a dummy orphan link is getting created .
> IMO its good to have a check on the source volume/bucket and path being
> passed in the command
> {code:java}
> [root@quasar-rsyvvc-1 ~]# ozone sh bucket link --help
> Usage: ozone sh bucket link [-hV] <source> <target>
> creates a symlink to another bucket
> <source> The bucket which the link should point to.
> <target> Address of the link bucket
> -h, --help Show this help message and exit.
> -V, --version Print version information and exit.
> [root@quasar-rsyvvc-1 ~]# ozone sh bucket link imaginaryvol1/imaginarybuck
> vol111111/bucketlink
> 23/08/09 19:41:22 INFO rpc.RpcClient: Creating Bucket: vol111111/bucketlink,
> with server-side default bucket layout, hdfs as owner, Versioning false,
> Storage Type set to DISK and Encryption set to false, Replication Type set to
> server-side default replication type, Namespace Quota set to -1, Space Quota
> set to -1
> [root@quasar-rsyvvc-1 ~]# ozone sh volume info imaginaryvol1
> VOLUME_NOT_FOUND Volume imaginaryvol1 is not found
> [root@quasar-rsyvvc-1 ~]# ozone sh bucket list vol111111
> [ {
> "metadata" : { },
> "volumeName" : "vol111111",
> "name" : "buck1111",
> "storageType" : "DISK",
> "versioning" : false,
> "usedBytes" : 3000000000,
> "usedNamespace" : 1,
> "creationTime" : "2023-08-09T17:23:11.534Z",
> "modificationTime" : "2023-08-09T17:23:35.523Z",
> "sourcePathExist" : true,
> "quotaInBytes" : 8053063680,
> "quotaInNamespace" : 2,
> "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
> "link" : false
> }, {
> "volumeName" : "vol111111",
> "bucketName" : "bucketlink",
> "sourceVolume" : "imaginaryvol1",
> "sourceBucket" : "imaginarybuck",
> "creationTime" : "2023-08-09T19:41:22.350Z",
> "modificationTime" : "2023-08-09T19:41:22.350Z",
> "owner" : "hdfs"
> } {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]