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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testBlockEvictionWithParallelScans() throws Exception
Exception
public void testParallelGetsAndScans() throws IOException, InterruptedException
IOException
InterruptedException
public void testGetWithCellsInDifferentFiles() throws IOException, InterruptedException
IOException
InterruptedException
public void testGetsWithMultiColumnsAndExplicitTracker() throws IOException, InterruptedException
IOException
InterruptedException
public void testGetWithMultipleColumnFamilies() throws IOException, InterruptedException
IOException
InterruptedException
public void testBlockRefCountAfterSplits() throws IOException, InterruptedException
IOException
InterruptedException
public void testMultiGets() throws IOException, InterruptedException
IOException
InterruptedException
public void testScanWithMultipleColumnFamilies() throws IOException, InterruptedException
IOException
InterruptedException
private org.apache.hadoop.hbase.io.hfile.BlockCache setCacheProperties(org.apache.hadoop.hbase.regionserver.HRegion region)
public void testParallelGetsAndScanWithWrappedRegionScanner() throws IOException, InterruptedException
IOException
InterruptedException
public void testScanWithCompaction() throws IOException, InterruptedException
IOException
InterruptedException
public void testReverseScanWithCompaction() throws IOException, InterruptedException
IOException
InterruptedException
private void testScanWithCompactionInternals(String tableNameStr, boolean reversed) throws IOException, InterruptedException
IOException
InterruptedException
public void testBlockEvictionAfterHBASE13082WithCompactionAndFlush() throws IOException, InterruptedException
IOException
InterruptedException
public void testScanWithException() throws IOException, InterruptedException
IOException
InterruptedException
private 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
IOException
private TestBlockEvictionFromClient.ScanThread[] initiateScan(org.apache.hadoop.hbase.client.Table table, boolean reverse) throws IOException, InterruptedException
IOException
InterruptedException
private TestBlockEvictionFromClient.GetThread[] initiateGet(org.apache.hadoop.hbase.client.Table table, boolean tracker, boolean multipleCFs) throws IOException, InterruptedException
IOException
InterruptedException
private TestBlockEvictionFromClient.MultiGetThread[] initiateMultiGet(org.apache.hadoop.hbase.client.Table table) throws IOException, InterruptedException
IOException
InterruptedException
private void checkForBlockEviction(org.apache.hadoop.hbase.io.hfile.BlockCache cache, boolean getClosed, boolean expectOnlyZero) throws InterruptedException
InterruptedException
private void waitForStoreFileCount(org.apache.hadoop.hbase.regionserver.HStore store, int count, int timeout) throws InterruptedException
InterruptedException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.