From 2a1a11c039518bab7e5b581ef23bc5a2e8c81544 Mon Sep 17 00:00:00 2001 From: litao Date: Wed, 10 Nov 2021 18:22:32 +0800 Subject: [PATCH] HDFS-16312. Fix typo for DataNodeVolumeMetrics and ProfilingFileIoEvents (#3637) Reviewed-by: Hui Fei --- .../hadoop/hdfs/server/datanode/ProfilingFileIoEvents.java | 2 +- .../hdfs/server/datanode/fsdataset/DataNodeVolumeMetrics.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ProfilingFileIoEvents.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ProfilingFileIoEvents.java index 2da3b1e8f98..802b8247936 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ProfilingFileIoEvents.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ProfilingFileIoEvents.java @@ -80,7 +80,7 @@ class ProfilingFileIoEvents { if (isEnabled) { DataNodeVolumeMetrics metrics = getVolumeMetrics(volume); if (metrics != null) { - metrics.addMetadastaOperationLatency(Time.monotonicNow() - begin); + metrics.addMetadataOperationLatency(Time.monotonicNow() - begin); } } } diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/DataNodeVolumeMetrics.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/DataNodeVolumeMetrics.java index 87509e5b921..0ea8020d256 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/DataNodeVolumeMetrics.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/DataNodeVolumeMetrics.java @@ -197,7 +197,7 @@ public class DataNodeVolumeMetrics { 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 class DataNodeVolumeMetrics { ms.unregisterSource(name); } - public void addMetadastaOperationLatency(final long latency) { + public void addMetadataOperationLatency(final long latency) { totalMetadataOperations.incr(); metadataOperationRate.add(latency); for (MutableQuantiles q : metadataOperationLatencyQuantiles) {