Package org.apache.hadoop.hbase.client
Class TestBlockEvictionFromClient
java.lang.Object
org.apache.hadoop.hbase.client.TestBlockEvictionFromClient
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests") @Tag("org.apache.hadoop.hbase.testclassification.ClientTests")
public class TestBlockEvictionFromClient
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classprivate static classprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static CountDownLatchprivate static byte[]private static byte[]private static CountDownLatchprivate static byte[][]private static byte[]private static CountDownLatchprivate static CountDownLatchprivate static final org.slf4j.Loggerprivate Stringprivate 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 HBaseTestingUtil -
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(org.junit.jupiter.api.TestInfo testInfo) static voidvoidtearDown()static voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestScanWithCompactionInternals(String tableNameStr, boolean reversed) voidvoidprivate voidwaitForStoreFileCount(org.apache.hadoop.hbase.regionserver.HStore store, int count, int timeout)
-
Field Details
-
LOG
-
TEST_UTIL
-
ROWS
-
NO_OF_THREADS
-
ROW
-
ROW1
-
ROW2
-
ROW3
-
FAMILY
-
FAMILIES_1
-
QUALIFIER
-
QUALIFIER2
-
data
-
data2
-
SLAVES
-
latch
-
getLatch
-
compactionLatch
-
exceptionLatch
-
methodName
-
-
Constructor Details
-
TestBlockEvictionFromClient
public TestBlockEvictionFromClient()
-
-
Method Details
-
setUp
- Throws:
Exception
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testBlockEvictionWithParallelScans
- Throws:
Exception
-
testParallelGetsAndScans
- Throws:
IOExceptionInterruptedException
-
testGetWithCellsInDifferentFiles
- Throws:
IOExceptionInterruptedException
-
testGetsWithMultiColumnsAndExplicitTracker
@Test public void testGetsWithMultiColumnsAndExplicitTracker() throws IOException, InterruptedException- 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
@Test 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
@Test 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
-