[
https://issues.apache.org/jira/browse/HDDS-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17245203#comment-17245203
]
mingchao zhao commented on HDDS-4272:
-------------------------------------
bq. My current understanding is I also need to move `usedNamespace` to
OMBucketInfo. And in OMBucketCreateRequest and OMBucketDeleteRequest, write
lock on BUCKET_LOCK is acquired so OMBucketInfo can be modified to incr/decr
`usedNamespace`
Hi [~amaliujia], I think you needn’t to remove the usedNamespace from
Volumeargs in your original PR. The reason why I removed the usedBytes from
Volumeargs is because volume lock will be introduced, which will affect
performance.
Volume lock is currently used in OMBucketCreateRequest and
OMBucketDeleteRequest, so you can continue update usedNamespace in Volumeargs.
What you need to improve is to take a copyObject with An omVolumeArgs and pass
it into the DoubleBuffer. The changes you need to make should be minimal.
> Volume namespace: add namespaceQuotaUsage and update it when create and
> delete bucket
> -------------------------------------------------------------------------------------
>
> Key: HDDS-4272
> URL: https://issues.apache.org/jira/browse/HDDS-4272
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Reporter: Rui Wang
> Assignee: Rui Wang
> Priority: Major
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]