Package org.apache.hadoop.hbase.client
Class TestFromClientSide5
java.lang.Object
org.apache.hadoop.hbase.client.FromClientSideBase
org.apache.hadoop.hbase.client.TestFromClientSide5
- Direct Known Subclasses:
TestFromClientSideWithCoprocessor5
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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.client.FromClientSideBase
FAMILY, INVALID_FAMILY, QUALIFIER, ROW, SLAVES, TEST_UTIL, VALUE
-
Constructor Summary
ConstructorDescriptionTestFromClientSide5
(Class<? extends org.apache.hadoop.hbase.client.ConnectionRegistry> registry, int numHedgedReqs) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
createTableAndValidateTableSchemaModification
(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.Result
getReverseScanResult
(org.apache.hadoop.hbase.client.Table table, byte[] row) private void
reverseScanTest
(org.apache.hadoop.hbase.client.Table table, boolean small) static void
void
void
void
void
Tests that cache on write works all the way up from the client-side.void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
Tests getRegionsInRange by creating some regions over which a range of keys spans; then changing the key range.void
void
void
void
void
void
void
void
void
void
void
void
void
Tests the non cached version of getRegionLocator by moving a region.void
void
void
Test for HBASE-17125void
Tests reversed scan under multi regionsvoid
void
void
Test ScanMetricsvoid
For HBASE-2156void
Test simple table and non-existent row cases.void
Tests reversed scan under multi regionsvoid
void
private void
waitForStoreFileCount
(org.apache.hadoop.hbase.regionserver.HStore store, int count, int timeout) Methods inherited from class org.apache.hadoop.hbase.client.FromClientSideBase
afterClass, assertDoubleResult, assertEmptyResult, assertIncrementKey, assertKey, assertNResult, assertNResult, assertNullResult, assertNumKeys, assertRowCount, assertSingleResult, assertSingleResult, assertSingleResult, buildScanner, createScanWithRowFilter, createScanWithRowFilter, deleteColumns, equals, getAllVersionsAndVerify, getNumberOfRows, getSingleScanResult, getTestNull, getTestNull, getVerifySingleColumn, getVerifySingleEmpty, getVersionAndVerify, getVersionAndVerifyMissing, getVersionRangeAndVerify, getVersionRangeAndVerifyGreaterThan, initialize, isSameParameterizedCluster, makeN, makeNAscii, makeNBig, makeStamps, putRows, scanAllVersionsAndVerify, scanTestNull, scanTestNull, scanVerifySingleColumn, scanVerifySingleEmpty, scanVersionAndVerify, scanVersionAndVerifyMissing, scanVersionRangeAndVerify, scanVersionRangeAndVerifyGreaterThan, singleRowGetTest, singleRowScanTest, splitTable
-
Field Details
-
LOG
-
CLASS_RULE
-
name
-
-
Constructor Details
-
TestFromClientSide5
-
TestFromClientSide5
public TestFromClientSide5(Class<? extends org.apache.hadoop.hbase.client.ConnectionRegistry> registry, int numHedgedReqs) throws Exception - Throws:
Exception
-
-
Method Details
-
parameters
-
tearDownAfterClass
- Throws:
Exception
-
testGetClosestRowBefore
- Throws:
IOException
InterruptedException
-
getReverseScanResult
private org.apache.hadoop.hbase.client.Result getReverseScanResult(org.apache.hadoop.hbase.client.Table table, byte[] row) throws IOException - Throws:
IOException
-
testScanVariableReuse
For HBASE-2156 -
testMultiRowMutation
- Throws:
Exception
-
testMultiRowMutationWithSingleConditionWhenConditionMatches
- Throws:
Exception
-
testMultiRowMutationWithSingleConditionWhenConditionNotMatch
- Throws:
Exception
-
testMultiRowMutationWithMultipleConditionsWhenConditionsMatch
- Throws:
Exception
-
testMultiRowMutationWithMultipleConditionsWhenConditionsNotMatch
- Throws:
Exception
-
testMultiRowMutationWithFilterConditionWhenConditionMatches
- Throws:
Exception
-
testMultiRowMutationWithFilterConditionWhenConditionNotMatch
- Throws:
Exception
-
testRowMutations
- Throws:
Exception
-
testBatchAppendWithReturnResultFalse
- Throws:
Exception
-
testAppend
- Throws:
Exception
-
doAppend
- Throws:
IOException
-
testAppendWithoutWAL
- Throws:
Exception
-
testClientPoolRoundRobin
- Throws:
IOException
-
testClientPoolThreadLocal
- 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
-
testScan_NullQualifier
- Throws:
IOException
-
testNegativeTimestamp
- 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, boolean small) 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
-