diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java index d716f04b1a9..077a5f898a8 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/metrics/TestNameNodeMetrics.java @@ -889,7 +889,7 @@ public class TestNameNodeMetrics { public void testSyncAndBlockReportMetric() throws Exception { MetricsRecordBuilder rb = getMetrics(NN_METRICS); // We have one sync when the cluster starts up, just opening the journal - assertCounter("SyncsNumOps", 3L, rb); + assertCounter("SyncsNumOps", 4L, rb); // Each datanode reports in when the cluster comes up assertCounter("StorageBlockReportNumOps", (long) DATANODE_COUNT * cluster.getStoragesPerDatanode(), rb);