Package org.apache.hadoop.hbase.client
Class TestBlockEvictionFromClient
java.lang.Object
org.apache.hadoop.hbase.client.TestBlockEvictionFromClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classprivate static classprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static CountDownLatchprivate static byte[]private static byte[]private static CountDownLatchprivate static byte[][]private static byte[]private static CountDownLatchprivate static CountDownLatchprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static intprivate static byte[]private static byte[]private static byte[]private static byte[]private static byte[]private static byte[](package private) static byte[][]protected static intprotected static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckForBlockEviction(org.apache.hadoop.hbase.io.hfile.BlockCache cache, boolean getClosed, boolean expectOnlyZero) private TestBlockEvictionFromClient.GetThread[]initiateGet(org.apache.hadoop.hbase.client.Table table, boolean tracker, boolean multipleCFs) initiateMultiGet(org.apache.hadoop.hbase.client.Table table) private TestBlockEvictionFromClient.ScanThread[]initiateScan(org.apache.hadoop.hbase.client.Table table, boolean reverse) private voidinsertData(org.apache.hadoop.hbase.client.Table table) private voiditerateBlockCache(org.apache.hadoop.hbase.io.hfile.BlockCache cache, Iterator<org.apache.hadoop.hbase.io.hfile.CachedBlock> iterator) private org.apache.hadoop.hbase.io.hfile.BlockCachesetCacheProperties(org.apache.hadoop.hbase.regionserver.HRegion region) voidsetUp()static voidvoidtearDown()static voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestScanWithCompactionInternals(String tableNameStr, boolean reversed) voidvoidprivate voidwaitForStoreFileCount(org.apache.hadoop.hbase.regionserver.HStore store, int count, int timeout)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
ROWS
-
NO_OF_THREADS
-
ROW
-
ROW1
-
ROW2
-
ROW3
-
FAMILY
-
FAMILIES_1
-
QUALIFIER
-
QUALIFIER2
-
data
-
data2
-
SLAVES
-
latch
-
getLatch
-
compactionLatch
-
exceptionLatch
-
name
-
-
Constructor Details
-
TestBlockEvictionFromClient
public TestBlockEvictionFromClient()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testBlockEvictionWithParallelScans
- Throws:
Exception
-
testParallelGetsAndScans
- Throws:
IOExceptionInterruptedException
-
testGetWithCellsInDifferentFiles
- Throws:
IOExceptionInterruptedException
-
testGetsWithMultiColumnsAndExplicitTracker
- Throws:
IOExceptionInterruptedException
-
testGetWithMultipleColumnFamilies
- Throws:
IOExceptionInterruptedException
-
testBlockRefCountAfterSplits
- Throws:
IOExceptionInterruptedException
-
testMultiGets
- Throws:
IOExceptionInterruptedException
-
testScanWithMultipleColumnFamilies
- Throws:
IOExceptionInterruptedException
-
setCacheProperties
private org.apache.hadoop.hbase.io.hfile.BlockCache setCacheProperties(org.apache.hadoop.hbase.regionserver.HRegion region) -
testParallelGetsAndScanWithWrappedRegionScanner
public void testParallelGetsAndScanWithWrappedRegionScanner() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
testScanWithCompaction
- Throws:
IOExceptionInterruptedException
-
testReverseScanWithCompaction
- Throws:
IOExceptionInterruptedException
-
testScanWithCompactionInternals
private void testScanWithCompactionInternals(String tableNameStr, boolean reversed) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
testBlockEvictionAfterHBASE13082WithCompactionAndFlush
public void testBlockEvictionAfterHBASE13082WithCompactionAndFlush() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
testScanWithException
- Throws:
IOExceptionInterruptedException
-
iterateBlockCache
private void iterateBlockCache(org.apache.hadoop.hbase.io.hfile.BlockCache cache, Iterator<org.apache.hadoop.hbase.io.hfile.CachedBlock> iterator) -
insertData
- Throws:
IOException
-
initiateScan
private TestBlockEvictionFromClient.ScanThread[] initiateScan(org.apache.hadoop.hbase.client.Table table, boolean reverse) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
initiateGet
private TestBlockEvictionFromClient.GetThread[] initiateGet(org.apache.hadoop.hbase.client.Table table, boolean tracker, boolean multipleCFs) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
initiateMultiGet
private TestBlockEvictionFromClient.MultiGetThread[] initiateMultiGet(org.apache.hadoop.hbase.client.Table table) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
checkForBlockEviction
private void checkForBlockEviction(org.apache.hadoop.hbase.io.hfile.BlockCache cache, boolean getClosed, boolean expectOnlyZero) throws InterruptedException - Throws:
InterruptedException
-
waitForStoreFileCount
private void waitForStoreFileCount(org.apache.hadoop.hbase.regionserver.HStore store, int count, int timeout) throws InterruptedException - Throws:
InterruptedException
-