Revert "HBASE-24073 [flakey test] client.TestAsyncRegionAdminApi messed up compaction state. (#1378)" (#1386)

This reverts commit d319ce8c6f.
This commit is contained in:
huaxiangsun 2020-03-30 10:06:13 -07:00 committed by GitHub
parent d77dbef5c6
commit f365cb5264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 12 deletions

View File

@ -372,18 +372,7 @@ public class TestAsyncRegionAdminApi extends TestAsyncAdminBase {
byte[][] families = byte[][] families =
{ family, Bytes.add(family, Bytes.toBytes("2")), Bytes.add(family, Bytes.toBytes("3")) }; { family, Bytes.add(family, Bytes.toBytes("2")), Bytes.add(family, Bytes.toBytes("3")) };
createTableWithDefaultConf(tableName, null, families); createTableWithDefaultConf(tableName, null, families);
loadData(tableName, families, 3000, flushes);
byte[][] singleFamilyArray = { family };
// When singleFamily is true, only load data for the family being tested. This is to avoid
// the case that while major compaction is going on for the family, minor compaction could
// happen for other families at the same time (Two compaction threads long/short), thus
// pollute the compaction and store file numbers for the region.
if (singleFamily) {
loadData(tableName, singleFamilyArray, 3000, flushes);
} else {
loadData(tableName, families, 3000, flushes);
}
List<Region> regions = new ArrayList<>(); List<Region> regions = new ArrayList<>();
TEST_UTIL TEST_UTIL