HBASE-15206 Fix flakey testSplitDaughtersNotInMeta test (Huaxiang Sun)
This commit is contained in:
parent
ed46591f30
commit
ecf3efadc0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue