From 3989c7238740888c8609833356400425f544bf75 Mon Sep 17 00:00:00 2001 From: larsh Date: Thu, 15 Nov 2012 05:29:02 +0000 Subject: [PATCH] HBASE-7165 TestSplitLogManager.testUnassignedTimeout is flaky git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1409649 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/master/TestSplitLogManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestSplitLogManager.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestSplitLogManager.java index fa69309ebbd..5a995f9d148 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestSplitLogManager.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestSplitLogManager.java @@ -425,7 +425,7 @@ public class TestSplitLogManager { zkw.getRecoverableZooKeeper().create(tasknode1, slt.toByteArray(), Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT); - int to = 1000; + int to = 4000; conf.setInt("hbase.splitlog.manager.timeout", to); conf.setInt("hbase.splitlog.manager.unassigned.timeout", 2 * to); conf.setInt("hbase.splitlog.manager.timeoutmonitor.period", 100); @@ -451,10 +451,10 @@ public class TestSplitLogManager { // since we have stopped heartbeating the owned node therefore it should // get resubmitted LOG.info("waiting for manager to resubmit the orphan task"); - waitForCounter(tot_mgr_resubmit, 0, 1, to + 500); + waitForCounter(tot_mgr_resubmit, 0, 1, to + to/2); // now all the nodes are unassigned. manager should post another rescan - waitForCounter(tot_mgr_resubmit_unassigned, 0, 1, 2 * to + 500); + waitForCounter(tot_mgr_resubmit_unassigned, 0, 1, 2 * to + to/2); } @Test