From 50764ef3e45b5dac1a8fa3af4ed04b008cbd73bd Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Thu, 14 Sep 2017 22:23:36 -0700 Subject: [PATCH] HDFS-12456. TestNamenodeMetrics.testSyncAndBlockReportMetric fails. Contributed by Bharat Viswanadham. --- .../hdfs/server/namenode/metrics/TestNameNodeMetrics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d716f04b1a..077a5f898a 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 void testTransactionAndCheckpointMetrics() throws Exception { 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);