HDFS-12456. TestNamenodeMetrics.testSyncAndBlockReportMetric fails. Contributed by Bharat Viswanadham.
This commit is contained in:
parent
08d996d3e9
commit
50764ef3e4
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue