HDFS-13908. TestDataNodeMultipleRegistrations is flaky. Contributed by Ayush Saxena.
(cherry picked from commit 56e0d635e0f49772d001c1fdb385110c705a622a)
This commit is contained in:
parent
4edcde055b
commit
b93aeb43a4
@ -250,7 +250,7 @@ public void testClusterIdMismatchAtStartupWithHA() throws Exception {
|
||||
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 void testDNWithInvalidStorageWithHA() throws Exception {
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user