Index: src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java =================================================================== --- src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java (revision 1425098) +++ src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java (working copy) @@ -1178,9 +1178,6 @@ // and end key. Adding the custom regions below adds those blindly, // including the new start region from empty to "bbb". lg List rows = getMetaTableRows(htd.getName()); - String regionToDeleteInFS = table - .getRegionsInRange(Bytes.toBytes(""), Bytes.toBytes("")).get(0) - .getRegionInfo().getEncodedName(); List newRegions = new ArrayList(startKeys.length); // add custom ones int count = 0; @@ -1202,11 +1199,6 @@ Bytes.toStringBinary(row)); meta.delete(new Delete(row)); } - // remove the "old" region from FS - Path tableDir = new Path(getDefaultRootDirPath().toString() - + System.getProperty("file.separator") + htd.getNameAsString() - + System.getProperty("file.separator") + regionToDeleteInFS); - getDFSCluster().getFileSystem().delete(tableDir); // flush cache of regions HConnection conn = table.getConnection(); conn.clearRegionCache();