HDFS-13908. TestDataNodeMultipleRegistrations is flaky. Contributed by Ayush Saxena.

(cherry picked from commit 56e0d635e0)
This commit is contained in:
Inigo Goiri 2018-09-19 09:30:25 -07:00
parent aaf0b119e5
commit e1af3c9bb7
1 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ public class TestDataNodeMultipleRegistrations {
try {
cluster.startDataNodes(conf, 1, true, null, null);
// let the initialization be complete
Thread.sleep(10000);
cluster.waitActive();
DataNode dn = cluster.getDataNodes().get(0);
assertTrue("Datanode should be running", dn.isDatanodeUp());
assertEquals("Only one BPOfferService should be running", 1,
@ -274,7 +274,7 @@ public class TestDataNodeMultipleRegistrations {
try {
cluster.startDataNodes(conf, 1, true, null, null);
// let the initialization be complete
Thread.sleep(10000);
cluster.waitActive();
DataNode dn = cluster.getDataNodes().get(0);
assertTrue("Datanode should be running", dn.isDatanodeUp());
assertEquals("BPOfferService should be running", 1,