From c4e8826194448866d55e1b5c5f3161a3af5a5015 Mon Sep 17 00:00:00 2001 From: litao Date: Fri, 12 Nov 2021 09:23:25 +0800 Subject: [PATCH] HDFS-16311. Metric metadataOperationRate calculation error in DataNodeVolumeMetrics (#3636) Reviewed-by: Ayush Saxena (cherry picked from commit 1c1cf64616f34d039cf9246da9613914aa870515) --- .../hdfs/server/datanode/fsdataset/DataNodeVolumeMetrics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0ea8020d256..0c2f5ad0aa5 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 @@ -284,6 +284,6 @@ public class DataNodeVolumeMetrics { public void addFileIoError(final long latency) { totalFileIoErrors.incr(); - metadataOperationRate.add(latency); + fileIoErrorRate.add(latency); } } \ No newline at end of file