Package org.apache.hadoop.hbase
Class TestCacheEviction
java.lang.Object
org.apache.hadoop.hbase.TestCacheEviction
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkCacheForBlocks
(org.apache.hadoop.hbase.TableName tableName, Collection<org.apache.hadoop.hbase.regionserver.HStoreFile> files, BiConsumer<String, Map<String, org.apache.hadoop.hbase.util.Pair<String, Long>>> checker) private void
checkRegionCached
(org.apache.hadoop.hbase.TableName tableName, boolean isCached) private void
createTable
(org.apache.hadoop.hbase.TableName tableName, boolean shouldFlushTable) private void
doTestEvictOnClose
(String table, boolean evictOnClose, BiConsumer<String, Map<String, org.apache.hadoop.hbase.util.Pair<String, Long>>> predicateBeforeClose, BiConsumer<String, Map<String, org.apache.hadoop.hbase.util.Pair<String, Long>>> predicateAfterClose) private void
doTestEvictOnSplit
(String table, boolean evictOnSplit, BiConsumer<String, Map<String, org.apache.hadoop.hbase.util.Pair<String, Long>>> predicateBeforeSplit, BiConsumer<String, Map<String, org.apache.hadoop.hbase.util.Pair<String, Long>>> predicateAfterSplit) static void
setUp()
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
-
Constructor Details
-
TestCacheEviction
public TestCacheEviction()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testEvictOnSplit
- Throws:
Exception
-
testDoesntEvictOnSplit
- Throws:
Exception
-
testEvictOnClose
- Throws:
Exception
-
testDoesntEvictOnClose
- Throws:
Exception
-
doTestEvictOnSplit
private void doTestEvictOnSplit(String table, boolean evictOnSplit, BiConsumer<String, Map<String, throws Exceptionorg.apache.hadoop.hbase.util.Pair<String, Long>>> predicateBeforeSplit, BiConsumer<String, Map<String, org.apache.hadoop.hbase.util.Pair<String, Long>>> predicateAfterSplit) - Throws:
Exception
-
doTestEvictOnClose
private void doTestEvictOnClose(String table, boolean evictOnClose, BiConsumer<String, Map<String, throws Exceptionorg.apache.hadoop.hbase.util.Pair<String, Long>>> predicateBeforeClose, BiConsumer<String, Map<String, org.apache.hadoop.hbase.util.Pair<String, Long>>> predicateAfterClose) - Throws:
Exception
-
createTable
private void createTable(org.apache.hadoop.hbase.TableName tableName, boolean shouldFlushTable) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
checkCacheForBlocks
private void checkCacheForBlocks(org.apache.hadoop.hbase.TableName tableName, Collection<org.apache.hadoop.hbase.regionserver.HStoreFile> files, BiConsumer<String, Map<String, org.apache.hadoop.hbase.util.Pair<String, Long>>> checker) -
testNoCacheWithoutFlush
- Throws:
Exception
-
testCacheWithFlush
- Throws:
Exception
-
checkRegionCached
private void checkRegionCached(org.apache.hadoop.hbase.TableName tableName, boolean isCached) throws IOException - Throws:
IOException
-