You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by bh...@apache.org on 2019/03/30 17:55:43 UTC
[hadoop] branch trunk updated: HDDS-1288. SCM - Failing test on
trunk that waits for HB report processing. Contributed by Siddharth Wagle.
This is an automated email from the ASF dual-hosted git repository.
bharat pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new bf3b7fd HDDS-1288. SCM - Failing test on trunk that waits for HB report processing. Contributed by Siddharth Wagle.
bf3b7fd is described below
commit bf3b7fd732d6b4def8012994db6f9bedb25b8a9f
Author: Bharat Viswanadham <bh...@apache.org>
AuthorDate: Sat Mar 30 10:54:45 2019 -0700
HDDS-1288. SCM - Failing test on trunk that waits for HB report processing. Contributed by Siddharth Wagle.
---
.../java/org/apache/hadoop/ozone/scm/node/TestSCMNodeMetrics.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/node/TestSCMNodeMetrics.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/node/TestSCMNodeMetrics.java
index d19be93..3a8f9f0 100644
--- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/node/TestSCMNodeMetrics.java
+++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/node/TestSCMNodeMetrics.java
@@ -140,9 +140,8 @@ public class TestSCMNodeMetrics {
NodeReportProto nodeReport = NodeReportProto.newBuilder()
.addStorageReport(storageReport).build();
datanode.getDatanodeStateMachine().getContext().addReport(nodeReport);
- datanode.getDatanodeStateMachine().triggerHeartbeat();
- // Give some time so that SCM receives and processes the heartbeat.
- Thread.sleep(300L);
+ cluster.getStorageContainerManager().getScmNodeManager()
+ .processNodeReport(datanode.getDatanodeDetails(), nodeReport);
assertGauge("HealthyNodes", 1,
getMetrics(SCMNodeMetrics.class.getSimpleName()));
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org