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

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • Snapshot (HDFS-2802)
    • namenode
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: