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

Storage type usage isn't updated properly after file deletion

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      For a directory that doesn't have any storage policy defined, its storage quota usage is deducted when a file is deleted (addBlock skips storage quota usage update in such case). This means negative value for storage quota usage. Later after applications set the storage policy and storage type quota, it allows the applications to use more than its storage type quota.

        Attachments

        1. HDFS-9360-2.patch
          5 kB
          Ming Ma
        2. HDFS-9360.patch
          3 kB
          Ming Ma

          Activity

            People

            • Assignee:
              mingma Ming Ma
              Reporter:
              mingma Ming Ma
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: