HBASE-4842 [hbck] Fix intermittent failures on TestHBaseFsck.testHBaseFsck

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1205101 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-11-22 17:41:19 +00:00
parent 2229f7e016
commit a5c87acadd
2 changed files with 8 additions and 0 deletions

View File

@ -439,6 +439,8 @@ Release 0.92.0 - Unreleased
time we issued bulk user region close call on our way out
HBASE-4815 Disable online altering by default, create a config for it
HBASE-4623 Remove @deprecated Scan methods in 0.90 from TRUNK and 0.92
HBASE-4842 [hbck] Fix intermittent failures on TestHBaseFsck.testHBaseFsck
(Jon Hsieh)
TESTS
HBASE-4450 test for number of blocks read: to serve as baseline for expected

View File

@ -66,6 +66,7 @@ public class TestHBaseFsck {
@BeforeClass
public static void setUpBeforeClass() throws Exception {
TEST_UTIL.getConfiguration().setBoolean("hbase.master.distributed.log.splitting", false);
TEST_UTIL.startMiniCluster(3);
}
@ -116,6 +117,11 @@ public class TestHBaseFsck {
assertErrors(doFsck(conf, true), new ERROR_CODE[]{
ERROR_CODE.SERVER_DOES_NOT_MATCH_META});
// fixing assignements require opening regions is not synchronous. To make
// the test pass consistentyl so for now we bake in some sleep to let it
// finish. 1s seems sufficient.
Thread.sleep(1000);
// Should be fixed now
assertNoErrors(doFsck(conf, false));