public class TestFromClientSide extends Object
HTable.
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.| Modifier and Type | Class and Description |
|---|---|
static class |
TestFromClientSide.ExceptionInReseekRegionObserver
This is a coprocessor to inject a test failure so that a store scanner.reseek() call will
fail with an IOException() on the first call.
|
| Modifier and Type | Field and Description |
|---|---|
protected static int |
SLAVES |
protected static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestFromClientSide() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testAddKeyValue() |
void |
testAppend() |
void |
testCacheOnWriteEvictOnClose()
Tests that cache on write works all the way up from the client-side.
|
void |
testCheckAndDeleteWithCompareOp() |
void |
testCheckAndPut() |
void |
testCheckAndPutWithCompareOp() |
void |
testClientPoolRoundRobin() |
void |
testClientPoolThreadLocal() |
void |
testClientScannerIsResetWhenScanThrowsIOException()
Tests the case where a Scan can throw an IOException in the middle of the seek / reseek
leaving the server side RegionScanner to be in dirty state.
|
void |
testDeleteFamilyVersion() |
void |
testDeleteFamilyVersionWithOtherDeletes() |
void |
testDeletes() |
void |
testDeletesWithReverseScan() |
void |
testDuplicateVersions() |
void |
testFilterAcrossMultipleRegions()
Test filters when multiple regions.
|
void |
testFilterAllRecords() |
void |
testFilters() |
void |
testFiltersWithReverseScan() |
void |
testFilterWithLongCompartor() |
void |
testGet_EmptyTable() |
void |
testGet_NonExistentRow() |
void |
testGet_NullQualifier() |
void |
testGetClosestRowBefore() |
void |
testGetConfiguration()
Verifies that getConfiguration returns the same Configuration object used
to create the HTable instance.
|
void |
testGetRegionsInRange() |
void |
testGetStartEndKeysWithRegionReplicas() |
void |
testHBase737()
test for HBASE-737
|
void |
testIllegalTableDescriptor() |
void |
testJira6912() |
void |
testJiraTest1014()
HBASE-1014
commit(BatchUpdate) method should return timestamp
|
void |
testJiraTest1182()
HBASE-1182
Scan for columns > some timestamp
|
void |
testJiraTest33()
HBASE-33
Add a HTable get/obtainScanner method that retrieves all versions of a
particular column and row between two timestamps
|
void |
testJiraTest52()
HBASE-52
Add a means of scanning over all versions
|
void |
testJiraTest861()
HBASE-861
get with timestamp will return a value if there is a version with an
earlier timestamp
|
void |
testJiraTest867()
HBASE-867
If millions of columns in a column family, hbase scanner won't come up
Test will create numRows rows, each with numColsPerRow columns
(1 version each), and attempt to scan them all.
|
void |
testKeepDeletedCells()
Basic client side validation of HBASE-4536
|
void |
testKeyOnlyFilter() |
void |
testKeyOnlyFilterWithReverseScan() |
void |
testListTables() |
void |
testMajorCompactionBetweenTwoUpdates() |
void |
testMaxKeyValueSize() |
void |
testMillions() |
void |
testMiscHTableStuff() |
void |
testMultipleRegionsAndBatchPuts() |
void |
testMultipleRowMultipleFamily() |
void |
testMultiRowMutation() |
void |
testNegativeTimestamp() |
void |
testNonCachedGetRegionLocation() |
void |
testNull() |
void |
testNullWithReverseScan() |
void |
testPurgeFutureDeletes()
Basic client side validation of HBASE-10118
|
void |
testPut() |
void |
testPutNoCF() |
void |
testRawScanRespectsVersions() |
void |
testRegionCache() |
void |
testReversedScanUnderMultiRegions()
Tests reversed scan under multi regions
|
void |
testRowMutation() |
void |
testRowsPut() |
void |
testRowsPutBufferedManyManyFlushes() |
void |
testRowsPutBufferedOneFlush() |
void |
testScan_NullQualifier() |
void |
testScanMetrics()
Test ScanMetrics
|
void |
testScannerFailsAfterRetriesWhenCoprocessorThrowsIOE()
Tests the case where a coprocessor throws a regular IOException in the scan.
|
void |
testScannerThrowsExceptionWhenCoprocessorThrowsDNRIOE()
Tests the case where a coprocessor throws a DoNotRetryIOException in the scan.
|
void |
testScanVariableReuse()
For HBASE-2156
|
void |
testSharedZooKeeper()
Deprecated.
Tests deprecated functionality. Remove when we are past 1.0.
|
void |
testSimpleMissing()
Test simple table and non-existent row cases.
|
void |
testSimpleMissingWithReverseScan()
Test simple table and non-existent row cases.
|
void |
testSingleRowMultipleFamily()
Test basic puts, gets, scans, and deletes for a single row
in a multiple family table.
|
void |
testSmallReversedScanUnderMultiRegions()
Tests reversed scan under multi regions
|
void |
testSmallScan() |
void |
testSuperSimple() |
void |
testSuperSimpleWithReverseScan() |
void |
testUnmanagedHConnection()
simple test that just executes parts of the client
API that accept a pre-created HConnection instance
|
void |
testUnmanagedHConnectionReconnect()
test of that unmanaged HConnections are able to reconnect
properly (see HBASE-5058)
|
void |
testUpdates() |
void |
testUpdatesWithMajorCompaction() |
void |
testVersionLimits() |
void |
testVersions() |
void |
testWeirdCacheBehaviour()
Test from client side of an involved filter against a multi family that
involves deletes.
|
protected static final HBaseTestingUtility TEST_UTIL
protected static int SLAVES
public void testKeepDeletedCells()
throws Exception
Exceptionpublic void testPurgeFutureDeletes()
throws Exception
Exception@Deprecated public void testSharedZooKeeper() throws Exception
Exceptionpublic void testGetConfiguration()
throws Exception
Exceptionpublic void testWeirdCacheBehaviour()
throws Exception
Exceptionpublic void testFilterAcrossMultipleRegions()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testClientScannerIsResetWhenScanThrowsIOException()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testScannerThrowsExceptionWhenCoprocessorThrowsDNRIOE()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testScannerFailsAfterRetriesWhenCoprocessorThrowsIOE()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testFilterWithLongCompartor()
throws Exception
Exceptionpublic void testSimpleMissing()
throws Exception
Exceptionpublic void testSingleRowMultipleFamily()
throws Exception
Exceptionpublic void testDeleteFamilyVersionWithOtherDeletes()
throws Exception
Exceptionpublic void testMultipleRegionsAndBatchPuts()
throws Exception
Exceptionpublic void testMultipleRowMultipleFamily()
throws Exception
Exceptionpublic void testJiraTest867()
throws Exception
Exceptionpublic void testJiraTest861()
throws Exception
Exceptionpublic void testJiraTest33()
throws Exception
Exceptionpublic void testJiraTest1014()
throws Exception
Exceptionpublic void testJiraTest1182()
throws Exception
Exceptionpublic void testJiraTest52()
throws Exception
Exceptionpublic void testUpdatesWithMajorCompaction()
throws Exception
Exceptionpublic void testMajorCompactionBetweenTwoUpdates()
throws Exception
Exceptionpublic void testGet_EmptyTable()
throws IOException
IOExceptionpublic void testGet_NullQualifier()
throws IOException
IOExceptionpublic void testGet_NonExistentRow()
throws IOException
IOExceptionpublic void testPut()
throws IOException
IOExceptionpublic void testPutNoCF()
throws IOException
IOExceptionpublic void testRowsPut()
throws IOException
IOExceptionpublic void testRowsPutBufferedOneFlush()
throws IOException
IOExceptionpublic void testRowsPutBufferedManyManyFlushes()
throws IOException
IOExceptionpublic void testAddKeyValue()
throws IOException
IOExceptionpublic void testHBase737()
throws IOException
IOExceptionpublic void testListTables()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testUnmanagedHConnection()
throws IOException
IOExceptionpublic void testUnmanagedHConnectionReconnect()
throws Exception
Exceptionpublic void testMiscHTableStuff()
throws IOException
IOExceptionpublic void testGetClosestRowBefore()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testScanVariableReuse()
throws Exception
Exceptionpublic void testClientPoolRoundRobin()
throws IOException
IOExceptionpublic void testClientPoolThreadLocal()
throws IOException
IOExceptionpublic void testCheckAndPut()
throws IOException
IOExceptionpublic void testCheckAndPutWithCompareOp()
throws IOException
IOExceptionpublic void testCheckAndDeleteWithCompareOp()
throws IOException
IOExceptionpublic void testCacheOnWriteEvictOnClose()
throws Exception
Exceptionpublic void testNonCachedGetRegionLocation()
throws Exception
Exceptionpublic void testScan_NullQualifier()
throws IOException
IOExceptionpublic void testNegativeTimestamp()
throws IOException
IOExceptionpublic void testIllegalTableDescriptor()
throws Exception
Exceptionpublic void testRawScanRespectsVersions()
throws Exception
Exceptionpublic void testSuperSimpleWithReverseScan()
throws Exception
Exceptionpublic void testFiltersWithReverseScan()
throws Exception
Exceptionpublic void testKeyOnlyFilterWithReverseScan()
throws Exception
Exceptionpublic void testSimpleMissingWithReverseScan()
throws Exception
Exceptionpublic void testDeletesWithReverseScan()
throws Exception
Exceptionpublic void testReversedScanUnderMultiRegions()
throws Exception
Exceptionpublic void testSmallReversedScanUnderMultiRegions()
throws Exception
Exceptionpublic void testGetStartEndKeysWithRegionReplicas()
throws IOException
IOExceptionpublic void testFilterAllRecords()
throws IOException
IOExceptionpublic void testRegionCache()
throws IOException
IOException