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

This commit is contained in:
Haohui Mai 2015-11-24 11:41:57 -08:00
parent 17b1a5482b
commit db4cab21f4
4 changed files with 2 additions and 19 deletions

View File

@ -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 |

View File

@ -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)

View File

@ -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();

View File

@ -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
*