public class TestBlockEvictionFromClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestBlockEvictionFromClient.CustomInnerRegionObserver |
static class |
TestBlockEvictionFromClient.CustomInnerRegionObserverWrapper |
private static class |
TestBlockEvictionFromClient.CustomScanner |
private static class |
TestBlockEvictionFromClient.GetThread |
private static class |
TestBlockEvictionFromClient.MultiGetThread |
private static class |
TestBlockEvictionFromClient.ScanThread |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static CountDownLatch |
compactionLatch |
private static byte[] |
data |
private static byte[] |
data2 |
private static CountDownLatch |
exceptionLatch |
private static byte[][] |
FAMILIES_1 |
private static byte[] |
FAMILY |
private static CountDownLatch |
getLatch |
private static CountDownLatch |
latch |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static int |
NO_OF_THREADS |
private static byte[] |
QUALIFIER |
private static byte[] |
QUALIFIER2 |
private static byte[] |
ROW |
private static byte[] |
ROW1 |
private static byte[] |
ROW2 |
private static byte[] |
ROW3 |
(package private) static byte[][] |
ROWS |
protected static int |
SLAVES |
protected static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestBlockEvictionFromClient() |
| Modifier and Type | Method and Description |
|---|---|
private 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) |
private TestBlockEvictionFromClient.MultiGetThread[] |
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 |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testBlockEvictionAfterHBASE13082WithCompactionAndFlush() |
void |
testBlockEvictionWithParallelScans() |
void |
testBlockRefCountAfterSplits() |
void |
testGetsWithMultiColumnsAndExplicitTracker() |
void |
testGetWithCellsInDifferentFiles() |
void |
testGetWithMultipleColumnFamilies() |
void |
testMultiGets() |
void |
testParallelGetsAndScans() |
void |
testParallelGetsAndScanWithWrappedRegionScanner() |
void |
testReverseScanWithCompaction() |
void |
testScanWithCompaction() |
private void |
testScanWithCompactionInternals(String tableNameStr,
boolean reversed) |
void |
testScanWithException() |
void |
testScanWithMultipleColumnFamilies() |
private void |
waitForStoreFileCount(org.apache.hadoop.hbase.regionserver.HStore store,
int count,
int timeout) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static final HBaseTestingUtility TEST_UTIL
static byte[][] ROWS
private static int NO_OF_THREADS
private static byte[] ROW
private static byte[] ROW1
private static byte[] ROW2
private static byte[] ROW3
private static byte[] FAMILY
private static byte[][] FAMILIES_1
private static byte[] QUALIFIER
private static byte[] QUALIFIER2
private static byte[] data
private static byte[] data2
protected static int SLAVES
private static CountDownLatch latch
private static CountDownLatch getLatch
private static CountDownLatch compactionLatch
private static CountDownLatch exceptionLatch
public org.junit.rules.TestName name
public TestBlockEvictionFromClient()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testBlockEvictionWithParallelScans() throws Exception
Exceptionpublic void testParallelGetsAndScans() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testGetWithCellsInDifferentFiles() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testGetsWithMultiColumnsAndExplicitTracker() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testGetWithMultipleColumnFamilies() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testBlockRefCountAfterSplits() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testMultiGets() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testScanWithMultipleColumnFamilies() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate org.apache.hadoop.hbase.io.hfile.BlockCache setCacheProperties(org.apache.hadoop.hbase.regionserver.HRegion region)
public void testParallelGetsAndScanWithWrappedRegionScanner() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testScanWithCompaction() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testReverseScanWithCompaction() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate void testScanWithCompactionInternals(String tableNameStr, boolean reversed) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testBlockEvictionAfterHBASE13082WithCompactionAndFlush() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testScanWithException() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate void iterateBlockCache(org.apache.hadoop.hbase.io.hfile.BlockCache cache, Iterator<org.apache.hadoop.hbase.io.hfile.CachedBlock> iterator)
private void insertData(org.apache.hadoop.hbase.client.Table table) throws IOException
IOExceptionprivate TestBlockEvictionFromClient.ScanThread[] initiateScan(org.apache.hadoop.hbase.client.Table table, boolean reverse) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate TestBlockEvictionFromClient.GetThread[] initiateGet(org.apache.hadoop.hbase.client.Table table, boolean tracker, boolean multipleCFs) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate TestBlockEvictionFromClient.MultiGetThread[] initiateMultiGet(org.apache.hadoop.hbase.client.Table table) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate void checkForBlockEviction(org.apache.hadoop.hbase.io.hfile.BlockCache cache, boolean getClosed, boolean expectOnlyZero) throws InterruptedException
InterruptedExceptionprivate void waitForStoreFileCount(org.apache.hadoop.hbase.regionserver.HStore store, int count, int timeout) throws InterruptedException
InterruptedExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.