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);


Reply via email to