diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSnapshotCloneIndependence.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSnapshotCloneIndependence.java index 0c63bdc..29e53ff 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSnapshotCloneIndependence.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSnapshotCloneIndependence.java @@ -95,12 +95,6 @@ public class TestSnapshotCloneIndependence { @After public void tearDown() throws Exception { UTIL.deleteTable(TABLE_NAME); - // and cleanup the archive directory - try { - UTIL.getTestFileSystem().delete(new Path(UTIL.getDefaultRootDirPath(), ".archive"), true); - } catch (IOException e) { - LOG.warn("Failure to delete archive directory", e); - } } @AfterClass @@ -110,6 +104,12 @@ public class TestSnapshotCloneIndependence { } catch (Exception e) { LOG.warn("failure shutting down cluster", e); } + // and cleanup the archive directory + try { + UTIL.getTestFileSystem().delete(new Path(UTIL.getDefaultRootDirPath(), ".archive"), true); + } catch (IOException e) { + LOG.warn("Failure to delete archive directory", e); + } } /** @@ -303,7 +303,9 @@ public class TestSnapshotCloneIndependence { originalRegionCount, cloneTableRegionCount); // Split a region on the parent table - admin.split(originalTableHRegions.get(0).getRegionName()); + admin.split(originalTableHRegions.get(1).getRegionName()); + LOG.info("split requested: " + Bytes.toStringBinary( + originalTableHRegions.get(1).getRegionName())); waitOnSplit(original, originalRegionCount); // Verify that the cloned table region is not split