From cb390dff87a86eae22c432576be90d39f84a6ee8 Mon Sep 17 00:00:00 2001 From: Nanda kumar Date: Tue, 13 Aug 2019 22:04:03 +0530 Subject: [PATCH] HDDS-1961. TestStorageContainerManager#testScmProcessDatanodeHeartbeat is flaky. Signed-off-by: Anu Engineer --- .../org/apache/hadoop/ozone/TestStorageContainerManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStorageContainerManager.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStorageContainerManager.java index 8b0af2a7966..55b184a5bc2 100644 --- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStorageContainerManager.java +++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStorageContainerManager.java @@ -527,8 +527,7 @@ public class TestStorageContainerManager { for (DatanodeDetails node : allNodes) { DatanodeInfo datanodeInfo = (DatanodeInfo) scm.getScmNodeManager() .getNodeByUuid(node.getUuidString()); - Assert.assertTrue((datanodeInfo.getLastHeartbeatTime() - start) - >= heartbeatCheckerIntervalMs); + Assert.assertTrue(datanodeInfo.getLastHeartbeatTime() > start); Assert.assertEquals(datanodeInfo.getUuidString(), datanodeInfo.getNetworkName()); Assert.assertEquals("/rack1", datanodeInfo.getNetworkLocation());