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.CacheConfig cc,
boolean doubling,
boolean sizing) |
private void |
doBucketCacheConfigTest() |
void |
setUp() |
void |
tearDown() |
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 |
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.CacheConfig cc, boolean doubling, boolean sizing)
cc
- 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()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.