HBASE-24428 : Fix for testSplitCompactWithPriority (ADDENDUM)
This commit is contained in:
parent
7b7e25a50b
commit
bf869def43
|
@ -324,8 +324,10 @@ public class TestSplitTransactionOnCluster {
|
||||||
// the procedure will return true; if the split fails, the procedure would throw exception.
|
// the procedure will return true; if the split fails, the procedure would throw exception.
|
||||||
ProcedureTestingUtility.waitProcedure(cluster.getMaster().getMasterProcedureExecutor(),
|
ProcedureTestingUtility.waitProcedure(cluster.getMaster().getMasterProcedureExecutor(),
|
||||||
procId);
|
procId);
|
||||||
|
Thread.sleep(3000);
|
||||||
assertEquals(2, cluster.getRegions(tableName).size());
|
assertNotEquals("Table is not split properly?", -1,
|
||||||
|
TESTING_UTIL.waitFor(3000,
|
||||||
|
() -> cluster.getRegions(tableName).size() == 2));
|
||||||
// we have 2 daughter regions
|
// we have 2 daughter regions
|
||||||
HRegion hRegion1 = cluster.getRegions(tableName).get(0);
|
HRegion hRegion1 = cluster.getRegions(tableName).get(0);
|
||||||
HRegion hRegion2 = cluster.getRegions(tableName).get(1);
|
HRegion hRegion2 = cluster.getRegions(tableName).get(1);
|
||||||
|
@ -357,6 +359,8 @@ public class TestSplitTransactionOnCluster {
|
||||||
// be accepted.
|
// be accepted.
|
||||||
assertTrue(compactionContext.get().getRequest().isAfterSplit());
|
assertTrue(compactionContext.get().getRequest().isAfterSplit());
|
||||||
assertEquals(compactionContext.get().getRequest().getPriority(), Integer.MIN_VALUE + 10);
|
assertEquals(compactionContext.get().getRequest().getPriority(), Integer.MIN_VALUE + 10);
|
||||||
|
admin.disableTable(tableName);
|
||||||
|
admin.deleteTable(tableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class FailingSplitMasterObserver implements MasterCoprocessor, MasterObserver {
|
public static class FailingSplitMasterObserver implements MasterCoprocessor, MasterObserver {
|
||||||
|
|
Loading…
Reference in New Issue