Package org.apache.hadoop.hbase.client
Class TestBlockEvictionFromClient
java.lang.Object
org.apache.hadoop.hbase.client.TestBlockEvictionFromClient
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
private static class
private static class
private static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static CountDownLatch
private static byte[]
private static byte[]
private static CountDownLatch
private static byte[][]
private static byte[]
private static CountDownLatch
private static CountDownLatch
private static final org.slf4j.Logger
org.junit.rules.TestName
private static int
private static byte[]
private static byte[]
private static byte[]
private static byte[]
private static byte[]
private static byte[]
(package private) static byte[][]
protected static int
protected static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkForBlockEviction
(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 void
insertData
(org.apache.hadoop.hbase.client.Table table) private void
iterateBlockCache
(org.apache.hadoop.hbase.io.hfile.BlockCache cache, Iterator<org.apache.hadoop.hbase.io.hfile.CachedBlock> iterator) private org.apache.hadoop.hbase.io.hfile.BlockCache
setCacheProperties
(org.apache.hadoop.hbase.regionserver.HRegion region) void
setUp()
static void
void
tearDown()
static void
void
void
void
void
void
void
void
void
void
void
void
private void
testScanWithCompactionInternals
(String tableNameStr, boolean reversed) void
void
private void
waitForStoreFileCount
(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:
IOException
InterruptedException
-
testGetWithCellsInDifferentFiles
- Throws:
IOException
InterruptedException
-
testGetsWithMultiColumnsAndExplicitTracker
- Throws:
IOException
InterruptedException
-
testGetWithMultipleColumnFamilies
- Throws:
IOException
InterruptedException
-
testBlockRefCountAfterSplits
- Throws:
IOException
InterruptedException
-
testMultiGets
- Throws:
IOException
InterruptedException
-
testScanWithMultipleColumnFamilies
- Throws:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
testScanWithCompaction
- Throws:
IOException
InterruptedException
-
testReverseScanWithCompaction
- Throws:
IOException
InterruptedException
-
testScanWithCompactionInternals
private void testScanWithCompactionInternals(String tableNameStr, boolean reversed) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
testBlockEvictionAfterHBASE13082WithCompactionAndFlush
public void testBlockEvictionAfterHBASE13082WithCompactionAndFlush() throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
testScanWithException
- Throws:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
initiateGet
private TestBlockEvictionFromClient.GetThread[] initiateGet(org.apache.hadoop.hbase.client.Table table, boolean tracker, boolean multipleCFs) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
initiateMultiGet
private TestBlockEvictionFromClient.MultiGetThread[] initiateMultiGet(org.apache.hadoop.hbase.client.Table table) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
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
-