public class TestCacheConfig extends Object
CacheConfig
does as expected.Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestCacheConfig.DataCacheEntry |
(package private) static class |
TestCacheConfig.Deserializer |
(package private) static class |
TestCacheConfig.IndexCacheEntry |
(package private) static class |
TestCacheConfig.MetaCacheEntry |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
TestCacheConfig() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
basicBlockCacheOps(org.apache.hadoop.hbase.io.hfile.BlockCache bc,
org.apache.hadoop.hbase.io.hfile.CacheConfig cc,
boolean doubling,
boolean sizing) |
private void |
doBucketCacheConfigTest() |
void |
setUp() |
void |
testBucketCacheConfigL1L2Setup()
Assert that when BUCKET_CACHE_COMBINED_KEY is false, the non-default, that we deploy
LruBlockCache as L1 with a BucketCache for L2.
|
void |
testCacheConfigDefaultLRUBlockCache() |
void |
testDisableCacheDataBlock() |
void |
testFileBucketCacheConfig() |
void |
testGetOnHeapCacheSize() |
void |
testIndexOnlyLruBlockCache() |
void |
testL2CacheWithInvalidBucketSize() |
void |
testOffHeapBucketCacheConfig()
Assert that the caches are deployed with CombinedBlockCache and of the appropriate sizes.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private org.apache.hadoop.conf.Configuration conf
public TestCacheConfig()
void basicBlockCacheOps(org.apache.hadoop.hbase.io.hfile.BlockCache bc, org.apache.hadoop.hbase.io.hfile.CacheConfig cc, boolean doubling, boolean sizing)
bc
- The block cache instance.cc
- Cache config.doubling
- If true, addition of element ups counter by 2, not 1, because element added to
onheap and offheap caches.sizing
- True if we should run sizing test (doesn't always apply).public void testDisableCacheDataBlock() throws IOException
IOException
public void testCacheConfigDefaultLRUBlockCache()
public void testOffHeapBucketCacheConfig()
public void testFileBucketCacheConfig() throws IOException
IOException
private void doBucketCacheConfigTest()
public void testBucketCacheConfigL1L2Setup()
public void testL2CacheWithInvalidBucketSize()
public void testIndexOnlyLruBlockCache()
public void testGetOnHeapCacheSize()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.