HDFS-12456. TestNamenodeMetrics.testSyncAndBlockReportMetric fails. Contributed by Bharat Viswanadham.

This commit is contained in:
Arpit Agarwal 2017-09-14 22:23:36 -07:00
parent 08d996d3e9
commit 50764ef3e4
1 changed files with 1 additions and 1 deletions

View File

@ -889,7 +889,7 @@ public class TestNameNodeMetrics {
public void testSyncAndBlockReportMetric() throws Exception { public void testSyncAndBlockReportMetric() throws Exception {
MetricsRecordBuilder rb = getMetrics(NN_METRICS); MetricsRecordBuilder rb = getMetrics(NN_METRICS);
// We have one sync when the cluster starts up, just opening the journal // 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 // Each datanode reports in when the cluster comes up
assertCounter("StorageBlockReportNumOps", assertCounter("StorageBlockReportNumOps",
(long) DATANODE_COUNT * cluster.getStoragesPerDatanode(), rb); (long) DATANODE_COUNT * cluster.getStoragesPerDatanode(), rb);