HBASE-24073 [flakey test] client.TestAsyncRegionAdminApi messed up compaction state. (#1387)
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
f365cb5264
commit
d318ca1741
|
@ -372,7 +372,18 @@ public class TestAsyncRegionAdminApi extends TestAsyncAdminBase {
|
|||
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);
|
||||
}
|
||||
|
||||
List<Region> regions = new ArrayList<>();
|
||||
TEST_UTIL
|
||||
|
|
Loading…
Reference in New Issue