HDFS-16312. Fix typo for DataNodeVolumeMetrics and ProfilingFileIoEvents (#3637)

Reviewed-by: Hui Fei <ferhui@apache.org>
This commit is contained in:
litao 2021-11-10 18:22:32 +08:00 committed by GitHub
parent ea65fc26d8
commit 2a1a11c039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ public void afterMetadataOp(@Nullable FsVolumeSpi volume,
if (isEnabled) {
DataNodeVolumeMetrics metrics = getVolumeMetrics(volume);
if (metrics != null) {
metrics.addMetadastaOperationLatency(Time.monotonicNow() - begin);
metrics.addMetadataOperationLatency(Time.monotonicNow() - begin);
}
}
}

View File

@ -197,7 +197,7 @@ public DataNodeVolumeMetrics(final MetricsSystem metricsSystem,
int interval = intervals[i];
metadataOperationLatencyQuantiles[i] = registry.newQuantiles(
"metadataOperationLatency" + interval + "s",
"Meatadata Operation Latency in ms", "ops", "latency", interval);
"Metadata Operation Latency in ms", "ops", "latency", interval);
dataFileIoLatencyQuantiles[i] = registry.newQuantiles(
"dataFileIoLatency" + interval + "s",
"Data File Io Latency in ms", "ops", "latency", interval);
@ -238,7 +238,7 @@ public void unRegister() {
ms.unregisterSource(name);
}
public void addMetadastaOperationLatency(final long latency) {
public void addMetadataOperationLatency(final long latency) {
totalMetadataOperations.incr();
metadataOperationRate.add(latency);
for (MutableQuantiles q : metadataOperationLatencyQuantiles) {