Package org.apache.hadoop.hbase.io.hfile
Class TestHFileScannerImplReferenceCount
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestHFileScannerImplReferenceCount
@Tag("org.apache.hadoop.hbase.testclassification.IOTests") @Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestHFileScannerImplReferenceCount
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.io.ByteBuffAllocatorprivate static final intprivate org.apache.hadoop.conf.Configurationprivate static final byte[]private org.apache.hadoop.hbase.ExtendedCellprivate org.apache.hadoop.fs.FileSystemprivate org.apache.hadoop.fs.Pathprivate Stringprivate static final org.slf4j.Loggerprivate static final byte[]private static final Randomprivate org.apache.hadoop.hbase.ExtendedCellprivate static final byte[]private static final HBaseTestingUtilprivate org.apache.hadoop.fs.Path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertRefCnt(org.apache.hadoop.hbase.io.hfile.HFileBlock block, int value) static Stream<org.junit.jupiter.params.provider.Arguments>private static byte[]voidsetUp(org.junit.jupiter.api.TestInfo testInfo) static voidvoidtearDown()voidvoidvoidvoidvoidprivate voidtestReleaseBlock(org.apache.hadoop.hbase.io.compress.Compression.Algorithm compression, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding) A careful UT for validating the reference count mechanism, if want to change this UT please read the design doc in HBASE-21879 firstly and make sure that understand the refCnt design.voidSee HBASE-22480voidprivate voidwaitBucketCacheFlushed(org.apache.hadoop.hbase.io.hfile.BlockCache cache) private voidwriteHFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path hfilePath, org.apache.hadoop.hbase.io.compress.Compression.Algorithm compression, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding, int cellCount)
-
Field Details
-
ioengine
-
LOG
-
UTIL
-
RNG
-
FAMILY
-
QUALIFIER
-
SUFFIX
-
CELL_COUNT
- See Also:
-
conf
-
workDir
-
fs
-
hfilePath
-
firstCell
-
secondCell
-
allocator
-
-
Constructor Details
-
TestHFileScannerImplReferenceCount
-
-
Method Details
-
parameters
-
randLongBytes
-
setUpBeforeClass
-
setUp
- Throws:
IOException
-
tearDown
- Throws:
IOException
-
waitBucketCacheFlushed
private void waitBucketCacheFlushed(org.apache.hadoop.hbase.io.hfile.BlockCache cache) throws InterruptedException - Throws:
InterruptedException
-
writeHFile
private void writeHFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path hfilePath, org.apache.hadoop.hbase.io.compress.Compression.Algorithm compression, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding, int cellCount) throws IOException - Throws:
IOException
-
testReleaseBlock
private void testReleaseBlock(org.apache.hadoop.hbase.io.compress.Compression.Algorithm compression, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding) throws Exception A careful UT for validating the reference count mechanism, if want to change this UT please read the design doc in HBASE-21879 firstly and make sure that understand the refCnt design.- Throws:
Exception
-
testSeekBefore
See HBASE-22480- Throws:
Exception
-
assertRefCnt
-
testDefault
- Throws:
Exception
-
testCompression
- Throws:
Exception
-
testDataBlockEncoding
- Throws:
Exception
-
testDataBlockEncodingAndCompression
- Throws:
Exception
-
testWithLruBlockCache
- Throws:
Exception
-
testDisabledBlockCache
- Throws:
Exception
-