HBASE-11867 TestSplitLogManager.testUnassignedTimeout is flaky

This commit is contained in:
Jimmy Xiang 2014-09-01 14:27:06 -07:00
parent 125f5619b9
commit d16c9d3776
1 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ public class TestSplitLogManager {
conf.setInt("hbase.splitlog.manager.unassigned.timeout", 2 * to); conf.setInt("hbase.splitlog.manager.unassigned.timeout", 2 * to);
conf.setInt("hbase.splitlog.manager.timeoutmonitor.period", 100); conf.setInt("hbase.splitlog.manager.timeoutmonitor.period", 100);
to = to + 4 * 100; to = to + 16 * 100;
this.mode = this.mode =
(conf.getBoolean(HConstants.DISTRIBUTED_LOG_REPLAY_KEY, false) ? RecoveryMode.LOG_REPLAY (conf.getBoolean(HConstants.DISTRIBUTED_LOG_REPLAY_KEY, false) ? RecoveryMode.LOG_REPLAY
@ -455,7 +455,7 @@ public class TestSplitLogManager {
SplitLogTask slt = new SplitLogTask.Resigned(worker1, this.mode); SplitLogTask slt = new SplitLogTask.Resigned(worker1, this.mode);
assertEquals(tot_mgr_resubmit.get(), 0); assertEquals(tot_mgr_resubmit.get(), 0);
ZKUtil.setData(zkw, tasknode, slt.toByteArray()); ZKUtil.setData(zkw, tasknode, slt.toByteArray());
int version = ZKUtil.checkExists(zkw, tasknode); ZKUtil.checkExists(zkw, tasknode);
// Could be small race here. // Could be small race here.
if (tot_mgr_resubmit.get() == 0) { if (tot_mgr_resubmit.get() == 0) {
waitForCounter(tot_mgr_resubmit, 0, 1, to/2); waitForCounter(tot_mgr_resubmit, 0, 1, to/2);