[
https://issues.apache.org/jira/browse/HDFS-17839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zhaobo Huang updated HDFS-17839:
--------------------------------
Description:
Calculating quota usage is primarily used to update directories labeled with
the DirectoryWithQuotaFeature. When there is no valid DirectoryWithQuotaFeature
in the paths of src and dst (excluding the root directory), the quota should
not be calculated in rename scenarios:
1. rename1 does not change the quota of the root directory, so neither src nor
dst contains DirectoryWithQuotaFeature. The operation of calculating quota
should be skipped.
2. In the scenario of overwriting, rename2 still needs to consider calculating
quota, otherwise it will affect the quotausage value of the root directory.
was:
Calculating quota usage is primarily used to update directories labeled with
the DirectoryWithQuotaFeature tag. When there is no valid
DirectoryWithQuotaFeature in the paths of src and dst (excluding the root
directory), the quota should not be calculated in rename scenarios:
1. rename1 does not change the quota of the root directory, so neither src nor
dst contains DirectoryWithQuotaFeature. The operation of calculating quota
should be skipped.
2. In the scenario of overwriting, rename2 still needs to consider calculating
quota, otherwise it will affect the quotausage value of the root directory.
> Rename skips path without valid 'DirectoryWithQuotaFeature' in FSDirRenameOp
> ----------------------------------------------------------------------------
>
> Key: HDFS-17839
> URL: https://issues.apache.org/jira/browse/HDFS-17839
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Zhaobo Huang
> Assignee: Zhaobo Huang
> Priority: Major
> Labels: pull-request-available
>
> Calculating quota usage is primarily used to update directories labeled with
> the DirectoryWithQuotaFeature. When there is no valid
> DirectoryWithQuotaFeature in the paths of src and dst (excluding the root
> directory), the quota should not be calculated in rename scenarios:
> 1. rename1 does not change the quota of the root directory, so neither src
> nor dst contains DirectoryWithQuotaFeature. The operation of calculating
> quota should be skipped.
> 2. In the scenario of overwriting, rename2 still needs to consider
> calculating quota, otherwise it will affect the quotausage value of the root
> directory.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]