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

Update the FilesDeleted metric while deleting file/dir in the current tree

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Snapshot (HDFS-2802)
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently in INode#cleanSubtree(...) we only calculate the namespace/diskspace change when deleting snapshots. We also need to compute the space change when deleting files/directories in the current tree so as to update the FilesDeleted metric. This can fix the failing testcase TestNameNodeMetrics.

        Attachments

        1. HDFS-4616.001.patch
          4 kB
          Jing Zhao

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: