Quellcode durchsuchen

HDFS-5165. Remove the TotalFiles metrics. Contributed by Akira AJISAKA.

Haohui Mai vor 9 Jahren
Ursprung
Commit
db4cab21f4

+ 0 - 1
hadoop-common-project/hadoop-common/src/site/markdown/Metrics.md

@@ -231,7 +231,6 @@ Each metrics record contains tags such as HAState and Hostname as additional inf
 | `MillisSinceLastLoadedEdits` | (HA-only) Time in milliseconds since the last time standby NameNode load edit log. In active NameNode, set to 0 |
 | `BlockCapacity` | Current number of block capacity |
 | `StaleDataNodes` | Current number of DataNodes marked stale due to delayed heartbeat |
-| `TotalFiles` | Deprecated: Use FilesTotal instead |
 | `MissingReplOneBlocks` | Current number of missing blocks with replication factor 1 |
 | `NumFilesUnderConstruction` | Current number of files under construction |
 | `NumActiveClients` | Current number of active clients holding lease |

+ 2 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -44,6 +44,8 @@ Trunk (Unreleased)
 
     HDFS-9278. Fix preferredBlockSize typo in OIV XML output. (Nicole Pazmany via wang)
 
+    HDFS-5165. Remove the TotalFiles metrics. (Akira Ajisaka via wheat9)
+
   NEW FEATURES
 
     HDFS-3125. Add JournalService to enable Journal Daemon. (suresh)

+ 0 - 8
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

@@ -6001,14 +6001,6 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
     return getBlocksTotal();
   }
 
-  /** @deprecated Use {@link #getFilesTotal()} instead. */
-  @Deprecated
-  @Override // NameNodeMXBean
-  @Metric
-  public long getTotalFiles() {
-    return getFilesTotal();
-  }
-
   @Override // NameNodeMXBean
   public long getNumberOfMissingBlocks() {
     return getMissingBlocksCount();

+ 0 - 10
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeMXBean.java

@@ -138,16 +138,6 @@ public interface NameNodeMXBean {
    */
   public long getTotalBlocks();
   
-  /**
-   * Gets the total number of files on the cluster
-   *
-   * @return the total number of files on the cluster
-   * @deprecated Use
-   * {@link org.apache.hadoop.hdfs.server.namenode.metrics.FSNamesystemMBean#getFilesTotal()} instead.
-   */
-  @Deprecated
-  public long getTotalFiles();
-  
   /**
    * Gets the total number of missing blocks on the cluster
    *