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

Quota Space consumed was wrong in truncate with Snapshots

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.1, 3.4.0
    • 3.3.1, 3.4.0
    • qouta, snapshots
    • None
    • Reviewed

    Description

      On calculating space quota usage

         if (file.getBlocks() != null) {
              allBlocks.addAll(Arrays.asList(file.getBlocks()));
         }
         if (removed.getBlocks() != null) {
              allBlocks.addAll(Arrays.asList(removed.getBlocks()));
         }  
         for (BlockInfo b: allBlocks) { 

      we missed out the blocks of file snapshot feature's Diffs

      Attachments

        1. HDFS-15332.001.patch
          3 kB
          Hemanth Boyina

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: