HDDS-1288. SCM - Failing test on trunk that waits for HB report processing. Contributed by Siddharth Wagle.
This commit is contained in:
parent
ec82e4cab2
commit
bf3b7fd732
|
@ -140,9 +140,8 @@ public class TestSCMNodeMetrics {
|
||||||
NodeReportProto nodeReport = NodeReportProto.newBuilder()
|
NodeReportProto nodeReport = NodeReportProto.newBuilder()
|
||||||
.addStorageReport(storageReport).build();
|
.addStorageReport(storageReport).build();
|
||||||
datanode.getDatanodeStateMachine().getContext().addReport(nodeReport);
|
datanode.getDatanodeStateMachine().getContext().addReport(nodeReport);
|
||||||
datanode.getDatanodeStateMachine().triggerHeartbeat();
|
cluster.getStorageContainerManager().getScmNodeManager()
|
||||||
// Give some time so that SCM receives and processes the heartbeat.
|
.processNodeReport(datanode.getDatanodeDetails(), nodeReport);
|
||||||
Thread.sleep(300L);
|
|
||||||
|
|
||||||
assertGauge("HealthyNodes", 1,
|
assertGauge("HealthyNodes", 1,
|
||||||
getMetrics(SCMNodeMetrics.class.getSimpleName()));
|
getMetrics(SCMNodeMetrics.class.getSimpleName()));
|
||||||
|
|
Loading…
Reference in New Issue