Details
-
Improvement
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
3.1.0
-
None
-
None
Description
At present when the storage policy of a directory or a file is changed, we just simply change the recorded policy. But the change of storage policy also change the consume, and that will cause violation of Quota, and cause the consume recorded in DirectoryWithQuotaFeature out of date.
We should do the quota check and consume update when setStoragePolicy():
- Compute the new consume and check quota on ancestors. If quota exceed throwing the QuotaExceedException. Else go to 2.
- Update the consume to all ancestors with Quota.
Related to HDFS-14633, see HDFS-14633 to get more discussions.
Attachments
Attachments
Issue Links
- is a child of
-
HDFS-14566 Quota improvement in HDFS
- Open
-
HDFS-14633 The StorageType quota and consume in QuotaFeature is not handled for rename
- Resolved