Package org.apache.hadoop.hbase.io.hfile
Class TestHFileScannerImplReferenceCount
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestHFileScannerImplReferenceCount
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.io.ByteBuffAllocator
org.junit.rules.TestName
private static final int
static final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private static final byte[]
private org.apache.hadoop.hbase.ExtendedCell
private org.apache.hadoop.fs.FileSystem
private org.apache.hadoop.fs.Path
private static final org.slf4j.Logger
private static final byte[]
private static final Random
private org.apache.hadoop.hbase.ExtendedCell
private static final byte[]
private static final HBaseTestingUtil
private org.apache.hadoop.fs.Path
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertRefCnt
(org.apache.hadoop.hbase.io.hfile.HFileBlock block, int value) static Collection<Object[]>
data()
private static byte[]
void
setUp()
static void
void
tearDown()
void
void
void
void
void
private void
testReleaseBlock
(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.void
See HBASE-22480void
private void
waitBucketCacheFlushed
(org.apache.hadoop.hbase.io.hfile.BlockCache cache) 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)
-
Field Details
-
CLASS_RULE
-
CASE
-
ioengine
-
LOG
-
UTIL
-
RNG
-
FAMILY
-
QUALIFIER
-
SUFFIX
-
CELL_COUNT
- See Also:
-
conf
-
workDir
-
fs
-
hfilePath
-
firstCell
-
secondCell
-
allocator
-
-
Constructor Details
-
TestHFileScannerImplReferenceCount
public TestHFileScannerImplReferenceCount()
-
-
Method Details
-
data
-
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
-