public class TestForceCacheImportantBlocks extends Object
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.
Modifier and Type | Field and Description |
---|---|
private static int |
BLOCK_SIZE
Extremely small block size, so that we can get some index blocks
|
private static org.apache.hadoop.hbase.regionserver.BloomType |
BLOOM_TYPE |
private static String |
CF |
private static byte[] |
CF_BYTES |
private boolean |
cfCacheEnabled |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.io.compress.Compression.Algorithm |
COMPRESSION_ALGORITHM |
private int |
hfileVersion |
private static int |
MAX_VERSIONS |
private static int |
NUM_COLS_PER_ROW |
private static int |
NUM_HFILES |
private static int |
NUM_ROWS |
private static int |
NUM_TIMESTAMPS_PER_COL |
private static int |
ROWS_PER_HFILE |
private static String |
TABLE |
private HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestForceCacheImportantBlocks(int hfileVersion,
boolean cfCacheEnabled) |
Modifier and Type | Method and Description |
---|---|
static Collection<Object[]> |
parameters() |
void |
setup() |
void |
testCacheBlocks() |
private void |
writeTestData(org.apache.hadoop.hbase.regionserver.HRegion region) |
public static final HBaseClassTestRule CLASS_RULE
private final HBaseTestingUtility TEST_UTIL
private static final String TABLE
private static final String CF
private static final byte[] CF_BYTES
private static final int MAX_VERSIONS
private static final int NUM_HFILES
private static final int ROWS_PER_HFILE
private static final int NUM_ROWS
private static final int NUM_COLS_PER_ROW
private static final int NUM_TIMESTAMPS_PER_COL
private static final int BLOCK_SIZE
private static final org.apache.hadoop.hbase.io.compress.Compression.Algorithm COMPRESSION_ALGORITHM
private static final org.apache.hadoop.hbase.regionserver.BloomType BLOOM_TYPE
private final int hfileVersion
private final boolean cfCacheEnabled
public TestForceCacheImportantBlocks(int hfileVersion, boolean cfCacheEnabled)
public static Collection<Object[]> parameters()
public void setup()
public void testCacheBlocks() throws IOException
IOException
private void writeTestData(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.