HBASE-16080 Fix flakey test TestTableBasedReplicationSourceManager.cleanupFailoverQueues().
Instead of running the primary test in a separate thread and hoping it finishes in time, just run the test in the primary thread. Signed-off-by: Elliott Clark <eclark@apache.org>
This commit is contained in:
parent
6fc71c5d31
commit
f3b3a7c9b5
|
@ -345,8 +345,7 @@ public abstract class TestReplicationSourceManager {
|
||||||
NodeFailoverWorker w1 =
|
NodeFailoverWorker w1 =
|
||||||
manager.new NodeFailoverWorker(server.getServerName().getServerName(), rq1, rp1, new UUID(
|
manager.new NodeFailoverWorker(server.getServerName().getServerName(), rq1, rp1, new UUID(
|
||||||
new Long(1), new Long(2)));
|
new Long(1), new Long(2)));
|
||||||
w1.start();
|
w1.run();
|
||||||
w1.join(10000);
|
|
||||||
assertEquals(1, manager.getWalsByIdRecoveredQueues().size());
|
assertEquals(1, manager.getWalsByIdRecoveredQueues().size());
|
||||||
String id = "1-" + server.getServerName().getServerName();
|
String id = "1-" + server.getServerName().getServerName();
|
||||||
assertEquals(files, manager.getWalsByIdRecoveredQueues().get(id).get(group));
|
assertEquals(files, manager.getWalsByIdRecoveredQueues().get(id).get(group));
|
||||||
|
|
Loading…
Reference in New Issue