Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13093

Quota set don't compute usage of unspecified storage policy content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • namenode
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            liaoyuxiangqin liaoyuxiangqin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified