public class TestBucketCacheRefCnt extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
BLOCK_SIZE |
private static int[] |
BLOCK_SIZE_ARRAY |
private org.apache.hadoop.hbase.io.hfile.bucket.BucketCache |
cache |
private static long |
CAPACITY_SIZE |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.io.hfile.HFileContext |
CONTEXT |
private static String |
IO_ENGINE |
private static String |
PERSISTENCE_PATH |
Constructor and Description |
---|
TestBucketCacheRefCnt() |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.hbase.io.hfile.bucket.BucketCache |
create(int writerSize,
int queueSize) |
private static org.apache.hadoop.hbase.io.hfile.HFileBlock |
createBlock(int offset,
int size) |
private static org.apache.hadoop.hbase.io.hfile.HFileBlock |
createBlock(int offset,
int size,
org.apache.hadoop.hbase.io.ByteBuffAllocator alloc) |
private static org.apache.hadoop.hbase.io.hfile.BlockCacheKey |
createKey(String hfileName,
long offset) |
private void |
disableWriter() |
void |
testBlockInBackingMap() |
void |
testBlockInRAMCache() |
void |
testInBucketCache() |
void |
testMarkStaleAsEvicted() |
private void |
waitUntilFlushedToCache(org.apache.hadoop.hbase.io.hfile.BlockCacheKey key) |
public static final HBaseClassTestRule CLASS_RULE
private static final String IO_ENGINE
private static final long CAPACITY_SIZE
private static final int BLOCK_SIZE
private static final int[] BLOCK_SIZE_ARRAY
private static final String PERSISTENCE_PATH
private static final org.apache.hadoop.hbase.io.hfile.HFileContext CONTEXT
private org.apache.hadoop.hbase.io.hfile.bucket.BucketCache cache
public TestBucketCacheRefCnt()
private static org.apache.hadoop.hbase.io.hfile.bucket.BucketCache create(int writerSize, int queueSize) throws IOException
IOException
private static org.apache.hadoop.hbase.io.hfile.HFileBlock createBlock(int offset, int size)
private static org.apache.hadoop.hbase.io.hfile.HFileBlock createBlock(int offset, int size, org.apache.hadoop.hbase.io.ByteBuffAllocator alloc)
private static org.apache.hadoop.hbase.io.hfile.BlockCacheKey createKey(String hfileName, long offset)
private void disableWriter()
public void testBlockInRAMCache() throws IOException
IOException
private void waitUntilFlushedToCache(org.apache.hadoop.hbase.io.hfile.BlockCacheKey key) throws InterruptedException
InterruptedException
public void testBlockInBackingMap() throws Exception
Exception
public void testInBucketCache() throws IOException
IOException
public void testMarkStaleAsEvicted() throws Exception
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.