Class TestRecoveryPersistentBucketCache
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.TestRecoveryPersistentBucketCache
Basic test for check file's integrity before start BucketCache in fileIOEngine
-
Field Summary
Modifier and TypeFieldDescription(package private) final long
static final HBaseClassTestRule
(package private) final int
(package private) final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
cacheAndWaitUntilFlushedToBucket
(org.apache.hadoop.hbase.io.hfile.bucket.BucketCache cache, org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable block) void
void
private void
waitUntilFlushedToBucket
(org.apache.hadoop.hbase.io.hfile.bucket.BucketCache cache, org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey)
-
Field Details
-
CLASS_RULE
-
capacitySize
- See Also:
-
writeThreads
- See Also:
-
writerQLen
- See Also:
-
-
Constructor Details
-
TestRecoveryPersistentBucketCache
public TestRecoveryPersistentBucketCache()
-
-
Method Details
-
testBucketCacheRecovery
- Throws:
Exception
-
testBucketCacheEvictByHFileAfterRecovery
- Throws:
Exception
-
waitUntilFlushedToBucket
private void waitUntilFlushedToBucket(org.apache.hadoop.hbase.io.hfile.bucket.BucketCache cache, org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey) throws InterruptedException - Throws:
InterruptedException
-
cacheAndWaitUntilFlushedToBucket
private void cacheAndWaitUntilFlushedToBucket(org.apache.hadoop.hbase.io.hfile.bucket.BucketCache cache, org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable block) throws InterruptedException - Throws:
InterruptedException
-