hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoyu Yao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-8476) quota can't limit the file which put before setting the storage policy
Date Tue, 26 May 2015 23:35:17 GMT

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

Xiaoyu Yao updated HDFS-8476:
-----------------------------
    Labels: QBST  (was: )

> 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: HDFS
>    Affects Versions: 2.7.0
>            Reporter: tongshiquan
>            Assignee: kanaka kumar avvaru
>            Priority: Minor
>              Labels: QBST
>
> 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)

Mime
View raw message