Skip to content

Commit

Permalink
Revert "HBASE-24073 [flakey test] client.TestAsyncRegionAdminApi mess…
Browse files Browse the repository at this point in the history
…ed up compaction state. (#1378)" (#1386)

This reverts commit d319ce8.
  • Loading branch information
huaxiangsun committed Mar 30, 2020
1 parent d77dbef commit f365cb5
Showing 1 changed file with 1 addition and 12 deletions.
Expand Up @@ -372,18 +372,7 @@ private void compactionTest(final TableName tableName, final int flushes,
byte[][] families =
{ family, Bytes.add(family, Bytes.toBytes("2")), Bytes.add(family, Bytes.toBytes("3")) };
createTableWithDefaultConf(tableName, null, families);

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);
}
loadData(tableName, families, 3000, flushes);

List<Region> regions = new ArrayList<>();
TEST_UTIL
Expand Down

0 comments on commit f365cb5

Please sign in to comment.