diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsckOneRS.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsckOneRS.java index c0939f374c8..b1864d2fe57 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsckOneRS.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsckOneRS.java @@ -938,6 +938,10 @@ public class TestHBaseFsckOneRS extends BaseTestHBaseFsck { HRegionInfo hri = location.getRegionInfo(); + // Disable CatalogJanitor to prevent it from cleaning up the parent region + // after split. + admin.enableCatalogJanitor(false); + // do a regular split byte[] regionName = location.getRegionInfo().getRegionName(); admin.splitRegion(location.getRegionInfo().getRegionName(), Bytes.toBytes("BM")); @@ -995,6 +999,7 @@ public class TestHBaseFsckOneRS extends BaseTestHBaseFsck { assertNoErrors(doFsck(conf, false)); //should be fixed by now } } finally { + admin.enableCatalogJanitor(true); meta.close(); cleanupTable(table); }