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

Quota Usage and Content summary are not same in Truncate with Snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • Reviewed

    Description

      steps : hdfs dfs -mkdir /dir

                 hdfs dfs -put file /dir          (file size = 10bytes)

                 hdfs dfsadmin -allowSnapshot /dir

                 hdfs dfs -createSnapshot /dir s1 

      space consumed with Quotausage and Content Summary is 30bytes

                 hdfs dfs -truncate -w 5 /dir/file

      space consumed with Quotausage , Content Summary is 45 bytes

                 hdfs dfs -deleteSnapshot /dir s1

      space consumed with Quotausage is 45bytes and Content Summary is 15bytes 

      Attachments

        1. HDFS-14977.001.patch
          4 kB
          Hemanth Boyina
        2. HDFS-14977.002.patch
          4 kB
          Hemanth Boyina
        3. HDFS-14977.003.patch
          4 kB
          Hemanth Boyina

        Activity

          People

            hemanthboyina Hemanth Boyina
            hemanthboyina Hemanth Boyina
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: