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 | | `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 | | `BlockCapacity` | Current number of block capacity |
| `StaleDataNodes` | Current number of DataNodes marked stale due to delayed heartbeat | | `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 | | `MissingReplOneBlocks` | Current number of missing blocks with replication factor 1 |
| `NumFilesUnderConstruction` | Current number of files under construction | | `NumFilesUnderConstruction` | Current number of files under construction |
| `NumActiveClients` | Current number of active clients holding lease | | `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-9278. Fix preferredBlockSize typo in OIV XML output. (Nicole Pazmany via wang)
HDFS-5165. Remove the TotalFiles metrics. (Akira Ajisaka via wheat9)
NEW FEATURES NEW FEATURES
HDFS-3125. Add JournalService to enable Journal Daemon. (suresh) HDFS-3125. Add JournalService to enable Journal Daemon. (suresh)

View File

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

View File

@ -138,16 +138,6 @@ public interface NameNodeMXBean {
*/ */
public long getTotalBlocks(); 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 * Gets the total number of missing blocks on the cluster
* *