Class TestBucketCachePersister
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.TestBucketCachePersister
-
Field Summary
Modifier and TypeFieldDescription(package private) final long
static final HBaseClassTestRule
int
int[]
private static final int
org.junit.rules.TestName
private static final int
private static final int
private static final HBaseTestingUtility
(package private) org.apache.hadoop.fs.Path
(package private) final int
(package private) final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanupBucketCache
(org.apache.hadoop.hbase.io.hfile.bucket.BucketCache bucketCache) static org.apache.hadoop.hbase.KeyValue.Type
generateKeyType
(Random rand) void
readStoreFile
(org.apache.hadoop.fs.Path storeFilePath, long offset, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.bucket.BucketCache bucketCache) org.apache.hadoop.hbase.io.hfile.bucket.BucketCache
setupBucketCache
(org.apache.hadoop.conf.Configuration conf) org.apache.hadoop.conf.Configuration
setupBucketCacheConfig
(long bucketCachePersistInterval) void
void
void
void
org.apache.hadoop.fs.Path
writeStoreFile
(String fname, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf, org.apache.hadoop.fs.FileSystem fs)
-
Field Details
-
CLASS_RULE
-
name
-
constructedBlockSize
-
constructedBlockSizes
-
TEST_UTIL
-
NUM_VALID_KEY_TYPES
-
DATA_BLOCK_SIZE
- See Also:
-
NUM_KV
- See Also:
-
capacitySize
- See Also:
-
writeThreads
- See Also:
-
writerQLen
- See Also:
-
testDir
org.apache.hadoop.fs.Path testDir
-
-
Constructor Details
-
TestBucketCachePersister
public TestBucketCachePersister()
-
-
Method Details
-
setupBucketCacheConfig
public org.apache.hadoop.conf.Configuration setupBucketCacheConfig(long bucketCachePersistInterval) throws IOException - Throws:
IOException
-
setupBucketCache
public org.apache.hadoop.hbase.io.hfile.bucket.BucketCache setupBucketCache(org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
cleanupBucketCache
public void cleanupBucketCache(org.apache.hadoop.hbase.io.hfile.bucket.BucketCache bucketCache) throws IOException - Throws:
IOException
-
testPrefetchPersistenceCrash
- Throws:
Exception
-
testPrefetchPersistenceCrashNegative
- Throws:
Exception
-
testPrefetchListUponBlockEviction
- Throws:
Exception
-
testPrefetchBlockEvictionWhilePrefetchRunning
- Throws:
Exception
-
readStoreFile
public void readStoreFile(org.apache.hadoop.fs.Path storeFilePath, long offset, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.bucket.BucketCache bucketCache) throws Exception - Throws:
Exception
-
writeStoreFile
public org.apache.hadoop.fs.Path writeStoreFile(String fname, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf, org.apache.hadoop.fs.FileSystem fs) throws IOException - Throws:
IOException
-
generateKeyType
-