hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1204815 - in /hbase/branches/0.92: CHANGES.txt src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsck.java
Date Tue, 22 Nov 2011 05:42:56 GMT
Author: stack
Date: Tue Nov 22 05:42:55 2011
New Revision: 1204815

URL: http://svn.apache.org/viewvc?rev=1204815&view=rev
Log:
HBASE-4842 [hbck] Fix intermittent failures on TestHBaseFsck.testHBaseFsck

Modified:
    hbase/branches/0.92/CHANGES.txt
    hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsck.java

Modified: hbase/branches/0.92/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/CHANGES.txt?rev=1204815&r1=1204814&r2=1204815&view=diff
==============================================================================
--- hbase/branches/0.92/CHANGES.txt (original)
+++ hbase/branches/0.92/CHANGES.txt Tue Nov 22 05:42:55 2011
@@ -437,6 +437,8 @@ Release 0.92.0 - Unreleased
                region map though not online; we don't cleanup WALs
    HBASE-4830  Regionserver BLOCKED on WAITING DFSClient$DFSOutputStream.waitForAckedSeqno
                running 0.20.205.0+
+   HBASE-4842  [hbck] Fix intermittent failures on TestHBaseFsck.testHBaseFsck
+               (Jon Hsieh)
 
   TESTS
    HBASE-4492  TestRollingRestart fails intermittently

Modified: hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsck.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsck.java?rev=1204815&r1=1204814&r2=1204815&view=diff
==============================================================================
--- hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsck.java (original)
+++ hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsck.java Tue
Nov 22 05:42:55 2011
@@ -70,6 +70,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);
   }
 
@@ -120,6 +121,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));
 



Mime
View raw message