Jinglun created HDFS-14568: ------------------------------ Summary: The quota and consume of the file's ancestors are not handled when the storage policy of the file is changed. Key: HDFS-14568 URL: https://issues.apache.org/jira/browse/HDFS-14568 Project: Hadoop HDFS Issue Type: Improvement Affects Versions: 3.1.0 Reporter: Jinglun
The quota and consume of the file's ancestors are not handled when the storage policy of the file is changed. For example: First I set quota StorageType.SSD 2*fileSpace to the parent dir; Then I create a file with len fileSpace with \{DISK,DISK,DISK} under it; Finally I change the storage policy of the file to ALLSSD_STORAGE_POLICY_NAME and expect a QuotaByStorageTypeExceededException. But there isn't any exception. I'm not sure it is a bug or originally designed to skip the quota check. But having the check does make sense. I'll upload a unit test to show the case. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org