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

set replication for empty file failed when set storage policy

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.8.0, 2.7.3, 3.0.0-alpha1
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      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. HDFS-9625.003.patch
          5 kB
          DENG FEI
        2. HDFS-9625.004.patch
          2 kB
          DENG FEI
        3. patch_HDFS-9625.20160107
          1 kB
          DENG FEI
        4. patch.HDFS-9625.002
          1 kB
          DENG FEI

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: