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:
Joseph Hwang 2016-06-22 08:55:41 -07:00 committed by Elliott Clark
parent 6fc71c5d31
commit f3b3a7c9b5
1 changed files with 1 additions and 2 deletions

View File

@ -345,8 +345,7 @@ public abstract class TestReplicationSourceManager {
NodeFailoverWorker w1 =
manager.new NodeFailoverWorker(server.getServerName().getServerName(), rq1, rp1, new UUID(
new Long(1), new Long(2)));
w1.start();
w1.join(10000);
w1.run();
assertEquals(1, manager.getWalsByIdRecoveredQueues().size());
String id = "1-" + server.getServerName().getServerName();
assertEquals(files, manager.getWalsByIdRecoveredQueues().get(id).get(group));