You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2010/10/10 08:48:49 UTC

svn commit: r1006253 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseClusterTestCase.java

Author: stack
Date: Sun Oct 10 06:48:48 2010
New Revision: 1006253

URL: http://svn.apache.org/viewvc?rev=1006253&view=rev
Log:
HBASE-3098 TestMetaReaderEditor is broken in TRUNK; hangs; Add cleanup of old tests dir to HBaseClusterTestCase -- we are reading old zk data on occasion

Modified:
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseClusterTestCase.java

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseClusterTestCase.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseClusterTestCase.java?rev=1006253&r1=1006252&r2=1006253&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseClusterTestCase.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseClusterTestCase.java Sun Oct 10 06:48:48 2010
@@ -97,6 +97,7 @@ public abstract class HBaseClusterTestCa
    */
   protected void hBaseClusterSetup() throws Exception {
     File testDir = new File(getUnitTestdir(getName()).toString());
+    if (testDir.exists()) testDir.delete();
 
     // Note that this is done before we create the MiniHBaseCluster because we
     // need to edit the config to add the ZooKeeper servers.
@@ -106,7 +107,6 @@ public abstract class HBaseClusterTestCa
     Configuration c = new Configuration(this.conf);
     // start the mini cluster
     this.cluster = new MiniHBaseCluster(c, regionServers);
-
     if (openMetaTable) {
       // opening the META table ensures that cluster is running
       new HTable(c, HConstants.META_TABLE_NAME);