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
FieldsModifier and TypeFieldDescription(package private) final longstatic final HBaseClassTestRule(package private) final int(package private) final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcacheAndWaitUntilFlushedToBucket(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) voidvoidprivate voidwaitUntilFlushedToBucket(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
-