Package org.apache.hadoop.hbase.client
Class FromClientSideTest5
java.lang.Object
org.apache.hadoop.hbase.client.FromClientSideTestBase
org.apache.hadoop.hbase.client.FromClientSideTest5
- Direct Known Subclasses:
TestFromClientSide5,TestFromClientSide5WithCoprocessor
Run tests that use the HBase clients;
Table. Sets up the HBase mini cluster once at start
and runs through all client tests. Each creates a table named for the method and does its stuff
against that. Parameterized to run with different registry implementations.-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.client.FromClientSideTestBase
FAMILY, INVALID_FAMILY, numHedgedReqs, QUALIFIER, registryImpl, ROW, SLAVES, tableName, TEST_UTIL, VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFromClientSideTest5(Class<? extends org.apache.hadoop.hbase.client.ConnectionRegistry> registryImpl, int numHedgedReqs) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreateTableAndValidateTableSchemaModification(org.apache.hadoop.hbase.TableName tableName, boolean modifyTable) Create table and validate online schema modificationprivate List<org.apache.hadoop.hbase.client.Result>doAppend(boolean walUsed) private List<org.apache.hadoop.hbase.HRegionLocation>getRegionsInRange(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] endKey) private org.apache.hadoop.hbase.client.ResultgetReverseScanResult(org.apache.hadoop.hbase.client.Table table, byte[] row) private voidreverseScanTest(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan.ReadType readType) voidvoidvoidvoidTests that cache on write works all the way up from the client-side.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidTests getRegionsInRange by creating some regions over which a range of keys spans; then changing the key range.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidTests the non cached version of getRegionLocator by moving a region.voidvoidvoidTest for HBASE-17125voidTests reversed scan under multi regionsvoidvoidTest ScanMetricsvoidvoidTest simple table and non-existent row cases.voidTests reversed scan under multi regionsvoidvoidprivate voidwaitForStoreFileCount(org.apache.hadoop.hbase.regionserver.HStore store, int count, int timeout) Methods inherited from class org.apache.hadoop.hbase.client.FromClientSideTestBase
assertDoubleResult, assertEmptyResult, assertIncrementKey, assertKey, assertNResult, assertNResult, assertNullResult, assertNumKeys, assertRowCount, assertSingleResult, assertSingleResult, assertSingleResult, buildScanner, createScanWithRowFilter, createScanWithRowFilter, deleteColumns, equals, getAllVersionsAndVerify, getClientConf, getConnection, getNumberOfRows, getSingleScanResult, getTestNull, getTestNull, getVerifySingleColumn, getVerifySingleEmpty, getVersionAndVerify, getVersionAndVerifyMissing, getVersionRangeAndVerify, getVersionRangeAndVerifyGreaterThan, initialize, makeN, makeNAscii, makeNBig, makeStamps, parameters, putRows, scanAllVersionsAndVerify, scanTestNull, scanTestNull, scanVerifySingleColumn, scanVerifySingleEmpty, scanVersionAndVerify, scanVersionAndVerifyMissing, scanVersionRangeAndVerify, scanVersionRangeAndVerifyGreaterThan, setUp, singleRowGetTest, singleRowScanTest, splitTable, tearDown, tearDownAfterClass
-
Field Details
-
LOG
-
-
Constructor Details
-
FromClientSideTest5
protected FromClientSideTest5(Class<? extends org.apache.hadoop.hbase.client.ConnectionRegistry> registryImpl, int numHedgedReqs)
-
-
Method Details
-
testGetClosestRowBefore
- Throws:
IOExceptionInterruptedException
-
getReverseScanResult
private org.apache.hadoop.hbase.client.Result getReverseScanResult(org.apache.hadoop.hbase.client.Table table, byte[] row) throws IOException - Throws:
IOException
-
testMultiRowMutation
- Throws:
Exception
-
testMultiRowMutationWithSingleConditionWhenConditionMatches
@TestTemplate public void testMultiRowMutationWithSingleConditionWhenConditionMatches() throws Exception- Throws:
Exception
-
testMultiRowMutationWithSingleConditionWhenConditionNotMatch
@TestTemplate public void testMultiRowMutationWithSingleConditionWhenConditionNotMatch() throws Exception- Throws:
Exception
-
testMultiRowMutationWithMultipleConditionsWhenConditionsMatch
@TestTemplate public void testMultiRowMutationWithMultipleConditionsWhenConditionsMatch() throws Exception- Throws:
Exception
-
testMultiRowMutationWithMultipleConditionsWhenConditionsNotMatch
@TestTemplate public void testMultiRowMutationWithMultipleConditionsWhenConditionsNotMatch() throws Exception- Throws:
Exception
-
testMultiRowMutationWithFilterConditionWhenConditionMatches
@TestTemplate public void testMultiRowMutationWithFilterConditionWhenConditionMatches() throws Exception- Throws:
Exception
-
testMultiRowMutationWithFilterConditionWhenConditionNotMatch
@TestTemplate public void testMultiRowMutationWithFilterConditionWhenConditionNotMatch() throws Exception- Throws:
Exception
-
testRowMutations
- Throws:
Exception
-
testBatchAppendWithReturnResultFalse
- Throws:
Exception
-
testAppend
- Throws:
Exception
-
doAppend
- Throws:
IOException
-
testAppendWithoutWAL
- Throws:
Exception
-
testClientPoolRoundRobin
- Throws:
IOException
-
testClientPoolThreadLocal
@Disabled("Flakey: HBASE-8989") @TestTemplate public void testClientPoolThreadLocal() throws IOException- Throws:
IOException
-
testCheckAndPut
- Throws:
IOException
-
testCheckAndMutateWithTimeRange
- Throws:
IOException
-
testCheckAndPutWithCompareOp
- Throws:
IOException
-
testCheckAndDelete
- Throws:
IOException
-
testCheckAndDeleteWithCompareOp
- Throws:
IOException
-
testScanMetrics
Test ScanMetrics- Throws:
Exception
-
testCacheOnWriteEvictOnClose
Tests that cache on write works all the way up from the client-side. Performs inserts, flushes, and compactions, verifying changes in the block cache along the way.- Throws:
Exception
-
waitForStoreFileCount
private void waitForStoreFileCount(org.apache.hadoop.hbase.regionserver.HStore store, int count, int timeout) throws InterruptedException - Throws:
InterruptedException
-
testNonCachedGetRegionLocation
Tests the non cached version of getRegionLocator by moving a region.- Throws:
Exception
-
testGetRegionsInRange
Tests getRegionsInRange by creating some regions over which a range of keys spans; then changing the key range.- Throws:
Exception
-
getRegionsInRange
private List<org.apache.hadoop.hbase.HRegionLocation> getRegionsInRange(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] endKey) throws IOException - Throws:
IOException
-
testJira6912
- Throws:
Exception
-
testScanNullQualifier
- Throws:
IOException
-
testRawScanRespectsVersions
- Throws:
Exception
-
testEmptyFilterList
- Throws:
Exception
-
testSmallScan
- Throws:
Exception
-
testSuperSimpleWithReverseScan
- Throws:
Exception
-
testFiltersWithReverseScan
- Throws:
Exception
-
testKeyOnlyFilterWithReverseScan
- Throws:
Exception
-
testSimpleMissingWithReverseScan
Test simple table and non-existent row cases.- Throws:
Exception
-
testNullWithReverseScan
- Throws:
Exception
-
testDeletesWithReverseScan
- Throws:
Exception
-
testReversedScanUnderMultiRegions
Tests reversed scan under multi regions- Throws:
Exception
-
testSmallReversedScanUnderMultiRegions
Tests reversed scan under multi regions- Throws:
Exception
-
reverseScanTest
private void reverseScanTest(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan.ReadType readType) throws IOException - Throws:
IOException
-
testFilterAllRecords
- Throws:
IOException
-
testCellSizeLimit
- Throws:
IOException
-
testCellSizeNoLimit
- Throws:
IOException
-
testDeleteSpecifiedVersionOfSpecifiedColumn
- Throws:
Exception
-
testDeleteLatestVersionOfSpecifiedColumn
- Throws:
Exception
-
testReadWithFilter
Test for HBASE-17125- Throws:
Exception
-
testCellUtilTypeMethods
- Throws:
IOException
-
testCreateTableWithZeroRegionReplicas
- Throws:
Exception
-
testModifyTableWithZeroRegionReplicas
- Throws:
Exception
-
testModifyTableWithMemstoreData
- Throws:
Exception
-
testDeleteCFWithMemstoreData
- Throws:
Exception
-
createTableAndValidateTableSchemaModification
private void createTableAndValidateTableSchemaModification(org.apache.hadoop.hbase.TableName tableName, boolean modifyTable) throws Exception Create table and validate online schema modification- Parameters:
tableName- Table namemodifyTable- Modify table if true otherwise delete column family- Throws:
IOException- in case of failuresException
-