You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Arun Sarin (Jira)" <ji...@apache.org> on 2023/08/02 09:23:00 UTC
[jira] [Created] (HDDS-9110) Bucket owner is getting unset on setting quota on that bucket
Arun Sarin created HDDS-9110:
--------------------------------
Summary: Bucket owner is getting unset on setting quota on that bucket
Key: HDDS-9110
URL: https://issues.apache.org/jira/browse/HDDS-9110
Project: Apache Ozone
Issue Type: Bug
Components: Ozone CLI
Reporter: Arun Sarin
Bucket owner is getting unset on setting quota on the bucket
Before
{code:java}
ozone sh bucket info o3://ozone1/$vol/$buck
{
"metadata" : { },
"volumeName" : "vol-1332653",
"name" : "buck-1332653",
"storageType" : "DISK",
"versioning" : false,
"usedBytes" : 0,
"usedNamespace" : 0,
"creationTime" : "2023-08-02T09:11:59.692Z",
"modificationTime" : "2023-08-02T09:11:59.692Z",
"sourcePathExist" : true,
"quotaInBytes" : -1,
"quotaInNamespace" : -1,
"bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
"owner" : "hdfs",
"link" : false
} {code}
After setting quota
{code:java}
[root@quasar-rsyvvc-1 ~]# ozone sh bucket info o3://ozone1/$vol/$buck
{
"metadata" : { },
"volumeName" : "vol-1332653",
"name" : "buck-1332653",
"storageType" : "DISK",
"versioning" : false,
"usedBytes" : 516000000,
"usedNamespace" : 1,
"creationTime" : "2023-08-02T09:11:59.692Z",
"modificationTime" : "2023-08-02T09:12:14.343Z",
"sourcePathExist" : true,
"quotaInBytes" : 8053063680,
"quotaInNamespace" : 2,
"bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
"link" : false
} {code}
Steps To Repro
{noformat}
vol=vol-$$
buck=buck-$$
snap=snap-$$
ozone sh volume create o3://ozone1/$vol --user root
ozone sh bucket create o3://ozone1/$vol/$buck
ozone sh bucket info o3://ozone1/$vol/$buck
ozone sh volume info o3://ozone1/$vol
ozone sh bucket setquota o3://ozone1/$vol/$buck --space-quota 8053063680 --namespace-quota 2
ozone sh volume setquota o3://ozone1/$vol --space-quota 8053063680 --namespace-quota 2
ozone sh key put o3://ozone1/$vol/$buck/snapshot_quota_1690918593 /tmp/snapshot_quota_1690918593
ozone sh bucket info o3://ozone1/$vol/$buck
ozone sh volume info o3://ozone1/$vol{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org