Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2802 Support for RW/RO snapshots in HDFS
  3. HDFS-4773

Fix bugs in quota usage updating/computation

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      1. FileWithSnapshot#updateQuotaAndCollectBlocks did not consider the scenario that all the snapshots has been deleted from a snapshot copy of deleted file. This may lead to a divide-by-0 error.

      2. When computing the quota usage for a WithName node and its subtree, if the snapshot associated with the WithName node at the time of rename operation has been deleted, we should compute the quota based on the posterior snapshot.

      Attachments

        1. HDFS-4773.003.patch
          12 kB
          Jing Zhao
        2. HDFS-4773.002.patch
          11 kB
          Jing Zhao
        3. HDFS-4773.001.patch
          7 kB
          Jing Zhao

        Activity

          People

            jingzhao Jing Zhao
            jingzhao Jing Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: