[ 
https://issues.apache.org/jira/browse/HDFS-8476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz Wo Nicholas Sze updated HDFS-8476:
--------------------------------------
       Priority: Major  (was: Minor)
    Component/s:     (was: HDFS)
                 namenode

> quota can't limit the file which put before setting the storage policy
> ----------------------------------------------------------------------
>
>                 Key: HDFS-8476
>                 URL: https://issues.apache.org/jira/browse/HDFS-8476
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.7.0
>            Reporter: tongshiquan
>            Assignee: Kanaka Kumar Avvaru
>              Labels: QBST
>         Attachments: screenshot-1.png
>
>
> test steps:
> 1. hdfs dfs -mkdir /HOT
> 2. hdfs dfs -put 1G.txt /HOT/file1
> 3. hdfs dfsadmin -setSpaceQuota 6442450944 -storageType DISK /HOT
> 4. hdfs storagepolicies -setStoragePolicy -path /HOT -policy HOT
> 5. hdfs dfs -put 1G.txt /HOT/file2
> 6. hdfs dfs -put 1G.txt /HOT/file3
> 7. hdfs dfs -count -q -h -v -t DISK /HOT
> In step6 file put should fail, because /HOT/file1 and /HOT/file2 have reach 
> the directory /HOT space quota 6GB (1G*3 replicas + 1G*3 replicas), but here 
> it success, and in step7 count shows remaining quota is -3GB
> FYI, if change the turn of step3 and step4, then it turns out normal



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to