HDDS-1961. TestStorageContainerManager#testScmProcessDatanodeHeartbeat is flaky.
Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
parent
68c818415a
commit
cb390dff87
|
@ -527,8 +527,7 @@ public class TestStorageContainerManager {
|
||||||
for (DatanodeDetails node : allNodes) {
|
for (DatanodeDetails node : allNodes) {
|
||||||
DatanodeInfo datanodeInfo = (DatanodeInfo) scm.getScmNodeManager()
|
DatanodeInfo datanodeInfo = (DatanodeInfo) scm.getScmNodeManager()
|
||||||
.getNodeByUuid(node.getUuidString());
|
.getNodeByUuid(node.getUuidString());
|
||||||
Assert.assertTrue((datanodeInfo.getLastHeartbeatTime() - start)
|
Assert.assertTrue(datanodeInfo.getLastHeartbeatTime() > start);
|
||||||
>= heartbeatCheckerIntervalMs);
|
|
||||||
Assert.assertEquals(datanodeInfo.getUuidString(),
|
Assert.assertEquals(datanodeInfo.getUuidString(),
|
||||||
datanodeInfo.getNetworkName());
|
datanodeInfo.getNetworkName());
|
||||||
Assert.assertEquals("/rack1", datanodeInfo.getNetworkLocation());
|
Assert.assertEquals("/rack1", datanodeInfo.getNetworkLocation());
|
||||||
|
|
Loading…
Reference in New Issue