Package org.apache.hadoop.hbase.client
Class TestScannersFromClientSide
java.lang.Object
org.apache.hadoop.hbase.client.TestScannersFromClientSide
A client-side test, mostly testing scanners with various parameters. Parameterized on different
 registry implementations.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static byte[]private static final org.slf4j.Loggerprivate static byte[]private static byte[]private static HBaseTestingUtilprivate static byte[]
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static booleanisSameParameterizedCluster(Class<?> registryImpl, int numHedgedReqs) JUnit does not provide an easy way to run a hook after each parameterized run.static Collection<Object[]>static voidvoidTest from client side for get with maxResultPerCF setvoidTest from client side for get with rowOffsetvoidvoidvoidvoidTest from client side for batch of scanvoidTest from client side for scan with maxResultPerCF setvoidScan on not existing table should throw the exception with correct messagevoidvoidTest from client side for scan while the region is reopened on the same region server.voidvoidvoidvoidprivate voidtestSmallScan(org.apache.hadoop.hbase.client.Table table, boolean reversed, int rows, int columns) Run through a variety of test configurations with a small scanprivate voidverifyExpectedCounts(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan, int expectedRowCount, int expectedCellCount) (package private) static voidverifyResult(org.apache.hadoop.hbase.client.Result result, List<org.apache.hadoop.hbase.Cell> expKvList, boolean toLog, String msg) 
- 
Field Details- 
CLASS_RULE
- 
LOG
- 
TEST_UTIL
- 
ROW
- 
FAMILY
- 
QUALIFIER
- 
VALUE
- 
name
 
- 
- 
Constructor Details- 
TestScannersFromClientSide- Throws:
- Exception
 
 
- 
- 
Method Details- 
tearDownAfterClass- Throws:
- Exception
 
- 
parameters
- 
isSameParameterizedClusterJUnit does not provide an easy way to run a hook after each parameterized run. Without that there is no easy way to restart the test cluster after each parameterized run. Annotation BeforeParam does not work either because it runs before parameterization and hence does not have access to the test parameters (which is weird). This *hack* checks if the current instance of test cluster configuration has the passed parameterized configs. In such a case, we can just reuse the cluster for test and do not need to initialize from scratch. While this is a hack, it saves a ton of time for the full test and de-flakes it.
- 
testScanBatchTest from client side for batch of scan- Throws:
- Exception
 
- 
testMaxResultSizeIsSetToDefault- Throws:
- Exception
 
- 
testScannerForNotExistingTableScan on not existing table should throw the exception with correct message
- 
testSmallScan- Throws:
- Exception
 
- 
testSmallScanprivate void testSmallScan(org.apache.hadoop.hbase.client.Table table, boolean reversed, int rows, int columns) throws Exception Run through a variety of test configurations with a small scan- Throws:
- Exception
 
- 
verifyExpectedCountsprivate void verifyExpectedCounts(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan, int expectedRowCount, int expectedCellCount) throws Exception - Throws:
- Exception
 
- 
testGetMaxResultsTest from client side for get with maxResultPerCF set- Throws:
- Exception
 
- 
testScanMaxResultsTest from client side for scan with maxResultPerCF set- Throws:
- Exception
 
- 
testGetRowOffsetTest from client side for get with rowOffset- Throws:
- Exception
 
- 
testScanRawDeleteFamilyVersion- Throws:
- Exception
 
- 
testScanOnReopenedRegionTest from client side for scan while the region is reopened on the same region server.- Throws:
- Exception
 
- 
verifyResultstatic void verifyResult(org.apache.hadoop.hbase.client.Result result, List<org.apache.hadoop.hbase.Cell> expKvList, boolean toLog, String msg) 
- 
testReadExpiredDataForRawScan- Throws:
- IOException
 
- 
testScanWithColumnsAndFilterAndVersion- Throws:
- IOException
 
- 
testScanWithSameStartRowStopRow- Throws:
- IOException
 
- 
testReverseScanWithFlush- Throws:
- Exception
 
- 
testScannerWithPartialResults- Throws:
- Exception
 
 
-