Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.0
-
None
-
None
-
hdfs: hadoop-3.1.0-SNAPSHOT
node:1 namenode, 9 datanodes
Description
test as following steps:
1. hdfs dfs -mkdir /hot
2. hdfs dfs -put 1G.img /hot/file1
3. hdfs dfsadmin -setSpaceQuota 6442450944 -storageType DISK /hot
4. hdfs storagepolicies -setStoragePolicy -path /hot -policy HOT
5. hdfs dfs -count -q -h -v -t DISK /hot
SSD_QUOTA REM_SSD_QUOTA DISK_QUOTA REM_DISK_QUOTA ARCHIVE_QUOTA REM_ARCHIVE_QUOTA PROVIDED_QUOTA REM_PROVIDED_QUOTA PATHNAME none inf 6 G 6 G none inf none inf /hot
In step5 i speculation the remaining quota is 3G(quota - 1G*3 replicas ),but 6G actually.
if i change the turn of step3 and step4, then the remaining quota equal to what I think 3G.