HBASE-3098 TestMetaReaderEditor is broken in TRUNK; hangs; Add cleanup of old tests dir to HBaseClusterTestCase -- we are reading old zk data on occasion
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1006253 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
924f28e5c3
commit
9d3bb109db
|
@ -97,6 +97,7 @@ public abstract class HBaseClusterTestCase extends HBaseTestCase {
|
|||
*/
|
||||
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 HBaseClusterTestCase extends HBaseTestCase {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue