huangzhaobo99 opened a new pull request, #7989: URL: https://github.com/apache/hadoop/pull/7989
### Description of PR 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. ### How was this patch tested? Add UT -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
