Package org.apache.hadoop.hbase.client
Class TestFromClientSide3
java.lang.Object
org.apache.hadoop.hbase.client.TestFromClientSide3
- Direct Known Subclasses:
TestFromClientSide3WoUnsafe
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final byte[]
static final HBaseClassTestRule
private static final byte[]
private static byte[]
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final byte[]
private static final byte[]
private static final byte[]
private static int
private org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
private static final byte[]
private static final byte[]
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
assertNoLocks
(org.apache.hadoop.hbase.TableName tableName) private static org.apache.hadoop.hbase.regionserver.HRegion
find
(org.apache.hadoop.hbase.TableName tableName) private static <T extends org.apache.hadoop.hbase.coprocessor.RegionObserver>
T(package private) static byte[]
generateHugeValue
(int size) private int
getStoreFileCount
(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.client.RegionInfo region) private void
performMultiplePutAndFlush
(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.client.Table table, byte[] row, byte[] family, int nFlushes, int nPuts) private void
randomCFPuts
(org.apache.hadoop.hbase.client.Table table, byte[] row, byte[] family, int nPuts) void
setUp()
static void
void
tearDown()
static void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
A test case for issue HBASE-17482 After combile seqid with mvcc readpoint, seqid/mvcc is acquired and stamped onto cells in the append thread, a countdown latch is used to ensure that happened before cells can be put into memstore.private void
testPreBatchMutate
(org.apache.hadoop.hbase.TableName tableName, Runnable rn) void
void
void
void
void
void
private static List<org.apache.hadoop.hbase.Cell>
toList
(org.apache.hadoop.hbase.client.ResultScanner scanner)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
WAITTABLE_MILLIS
- See Also:
-
FAMILY
-
SLAVES
-
ROW
-
ANOTHERROW
-
QUALIFIER
-
VALUE
-
COL_QUAL
-
VAL_BYTES
-
ROW_BYTES
-
name
-
tableName
-
-
Constructor Details
-
TestFromClientSide3
public TestFromClientSide3()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
randomCFPuts
private void randomCFPuts(org.apache.hadoop.hbase.client.Table table, byte[] row, byte[] family, int nPuts) throws Exception - Throws:
Exception
-
performMultiplePutAndFlush
private void performMultiplePutAndFlush(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.client.Table table, byte[] row, byte[] family, int nFlushes, int nPuts) throws Exception - Throws:
Exception
-
toList
-
testScanAfterDeletingSpecifiedRow
- Throws:
IOException
InterruptedException
-
testScanAfterDeletingSpecifiedRowV2
- Throws:
IOException
InterruptedException
-
getStoreFileCount
private int getStoreFileCount(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.client.RegionInfo region) throws IOException - Throws:
IOException
-
testAdvancedConfigOverride
- Throws:
Exception
-
testHTableBatchWithEmptyPut
- Throws:
IOException
InterruptedException
-
testHTableWithLargeBatch
- Throws:
IOException
InterruptedException
-
testBatchWithRowMutation
- Throws:
Exception
-
testBatchWithCheckAndMutate
- Throws:
Exception
-
testHTableExistsMethodSingleRegionSingleGet
- Throws:
IOException
InterruptedException
-
testHTableExistsMethodSingleRegionMultipleGets
public void testHTableExistsMethodSingleRegionMultipleGets() throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
testHTableExistsBeforeGet
- Throws:
IOException
InterruptedException
-
testHTableExistsAllBeforeGet
- Throws:
IOException
InterruptedException
-
testHTableExistsMethodMultipleRegionsSingleGet
- Throws:
Exception
-
testHTableExistsMethodMultipleRegionsMultipleGets
- Throws:
Exception
-
testGetEmptyRow
- Throws:
Exception
-
testConnectionDefaultUsesCodec
- Throws:
Exception
-
testPutWithPreBatchMutate
- Throws:
Exception
-
testRowMutationsWithPreBatchMutate
- Throws:
Exception
-
testPreBatchMutate
private void testPreBatchMutate(org.apache.hadoop.hbase.TableName tableName, Runnable rn) throws Exception - Throws:
Exception
-
testLockLeakWithDelta
-
testMultiRowMutations
-
testMVCCUsingMVCCPreAssign
A test case for issue HBASE-17482 After combile seqid with mvcc readpoint, seqid/mvcc is acquired and stamped onto cells in the append thread, a countdown latch is used to ensure that happened before cells can be put into memstore. But the MVCCPreAssign patch(HBASE-16698) make the seqid/mvcc acquirement in handler thread and stamping in append thread No countdown latch to assure cells in memstore are stamped with seqid/mvcc. If cells without mvcc(A.K.A mvcc=0) are put into memstore, then a scanner with a smaller readpoint can see these data, which disobey the multi version concurrency control rules. This test case is to reproduce this scenario.- Throws:
IOException
InterruptedException
-
testPutThenGetWithMultipleThreads
- Throws:
Exception
-
assertNoLocks
private static void assertNoLocks(org.apache.hadoop.hbase.TableName tableName) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
find
private static org.apache.hadoop.hbase.regionserver.HRegion find(org.apache.hadoop.hbase.TableName tableName) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
find
private static <T extends org.apache.hadoop.hbase.coprocessor.RegionObserver> T find(org.apache.hadoop.hbase.TableName tableName, Class<T> clz) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
generateHugeValue
-
testScanWithBatchSizeReturnIncompleteCells
- Throws:
IOException
InterruptedException
-