HBASE-24167 [Flakey Tests] TestHRegionWithInMemoryFlush#testWritesWhileScanning gets stuck MVCC
This commit is contained in:
parent
0931019681
commit
117164e12f
|
@ -3815,6 +3815,20 @@ public class TestHRegion {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* So can be overridden in subclasses.
|
||||
*/
|
||||
int getNumQualifiersForTestWritesWhileScanning() {
|
||||
return 100;
|
||||
}
|
||||
|
||||
/**
|
||||
* So can be overridden in subclasses.
|
||||
*/
|
||||
int getTestCountForTestWritesWhileScanning() {
|
||||
return 100;
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes very wide records and scans for the latest every time.. Flushes and
|
||||
* compacts the region every now and then to keep things realistic.
|
||||
|
@ -3826,10 +3840,10 @@ public class TestHRegion {
|
|||
*/
|
||||
@Test
|
||||
public void testWritesWhileScanning() throws IOException, InterruptedException {
|
||||
int testCount = 100;
|
||||
int testCount = getTestCountForTestWritesWhileScanning();
|
||||
int numRows = 1;
|
||||
int numFamilies = 10;
|
||||
int numQualifiers = 100;
|
||||
int numQualifiers = getNumQualifiersForTestWritesWhileScanning();
|
||||
int flushInterval = 7;
|
||||
int compactInterval = 5 * flushInterval;
|
||||
byte[][] families = new byte[numFamilies][];
|
||||
|
|
|
@ -68,6 +68,18 @@ public class TestHRegionWithInMemoryFlush extends TestHRegion {
|
|||
isReadOnly, durability, wal, inMemory, families);
|
||||
}
|
||||
|
||||
@Override int getTestCountForTestWritesWhileScanning() {
|
||||
return 10;
|
||||
}
|
||||
|
||||
/**
|
||||
* testWritesWhileScanning is flakey when called out of this class. Need to dig in. Meantime
|
||||
* go easy on it. See if that helps.
|
||||
*/
|
||||
@Override int getNumQualifiersForTestWritesWhileScanning() {
|
||||
return 10;
|
||||
}
|
||||
|
||||
/**
|
||||
* A test case of HBASE-21041
|
||||
* @throws Exception Exception
|
||||
|
|
Loading…
Reference in New Issue