Package org.apache.hadoop.hbase.io.hfile
Class TestForceCacheImportantBlocks
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestForceCacheImportantBlocks
Make sure we always cache important block types, such as index blocks, as long as we have a block
cache, even though block caching might be disabled for the column family.
TODO: This test writes a lot of data and only tests the most basic of metrics. Cache stats need to reveal more about what is being cached whether DATA or INDEX blocks and then we could do more verification in this test.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
Extremely small block size, so that we can get some index blocksprivate static final org.apache.hadoop.hbase.regionserver.BloomType
private static final String
private static final byte[]
private final boolean
static final HBaseClassTestRule
private static final org.apache.hadoop.hbase.io.compress.Compression.Algorithm
private final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final String
private final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Object[]>
void
setup()
void
private void
writeTestData
(org.apache.hadoop.hbase.regionserver.HRegion region)
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
TABLE
- See Also:
-
CF
- See Also:
-
CF_BYTES
-
MAX_VERSIONS
- See Also:
-
NUM_HFILES
- See Also:
-
ROWS_PER_HFILE
- See Also:
-
NUM_ROWS
- See Also:
-
NUM_COLS_PER_ROW
- See Also:
-
NUM_TIMESTAMPS_PER_COL
- See Also:
-
BLOCK_SIZE
Extremely small block size, so that we can get some index blocks- See Also:
-
COMPRESSION_ALGORITHM
private static final org.apache.hadoop.hbase.io.compress.Compression.Algorithm COMPRESSION_ALGORITHM -
BLOOM_TYPE
-
hfileVersion
-
cfCacheEnabled
-
-
Constructor Details
-
TestForceCacheImportantBlocks
-
-
Method Details
-
parameters
-
setup
-
testCacheBlocks
- Throws:
IOException
-
writeTestData
- Throws:
IOException
-