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

set replication for empty file failed when set storage policy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0, 2.7.3, 3.0.0-alpha1
    • namenode
    • None
    • Reviewed

    Description

      When setReplication, the FSDirectory#updateCount need calculate the related storageTypes quota,but will check the file consume the ds quota is positive.
      Actually,it's may set replication after create file,like JobSplitWriter#createSplitFiles.
      It's also can reproduce on command shell:
      1. hdfs storagepolicies -setStoragePolicy -path /tmp -policy HOT
      2. hdfs dfs -touchz /tmp/test
      3. hdfs dfs -setrep 5 /tmp/test

      Attachments

        1. patch.HDFS-9625.002
          1 kB
          DENG FEI
        2. patch_HDFS-9625.20160107
          1 kB
          DENG FEI
        3. HDFS-9625.004.patch
          2 kB
          DENG FEI
        4. HDFS-9625.003.patch
          5 kB
          DENG FEI

        Issue Links

          Activity

            People

              Deng FEI DENG FEI
              Deng FEI DENG FEI
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: