Class TestChangingEncoding
java.lang.Object
org.apache.hadoop.hbase.io.encoding.TestChangingEncoding
Tests changing data block encoding settings of a column family.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String(package private) static final byte[]static final HBaseClassTestRuleprivate static final org.apache.hadoop.conf.Configurationprivate static final List<org.apache.hadoop.hbase.io.encoding.DataBlockEncoding>private org.apache.hadoop.hbase.HColumnDescriptorprivate static final org.slf4j.Loggerprivate static final intprivate static final intprivate intA zero-based index of the current batch of test data being writtenprivate org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtilityprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate static final List<org.apache.hadoop.hbase.io.encoding.DataBlockEncoding>private static byte[]getQualifier(int j) private static byte[]getRowKey(int batchId, int i) private static byte[]getValue(int batchId, int i, int j) private voidprepareTest(String testId) private voidsetEncodingConf(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding, boolean onlineChange) static voidstatic voidvoidvoidvoidprivate void(package private) static voidverifyTestDataBatch(org.apache.hadoop.hbase.TableName tableName, int batchId) private void(package private) static voidwriteTestDataBatch(org.apache.hadoop.hbase.TableName tableName, int batchId)
-
Field Details
-
CLASS_RULE
-
LOG
-
CF
- See Also:
-
CF_BYTES
-
NUM_ROWS_PER_BATCH
- See Also:
-
NUM_COLS_PER_ROW
- See Also:
-
TEST_UTIL
-
conf
-
TIMEOUT_MS
- See Also:
-
hcd
-
tableName
-
ENCODINGS_TO_ITERATE
private static final List<org.apache.hadoop.hbase.io.encoding.DataBlockEncoding> ENCODINGS_TO_ITERATE -
numBatchesWritten
A zero-based index of the current batch of test data being written
-
-
Constructor Details
-
TestChangingEncoding
public TestChangingEncoding()
-
-
Method Details
-
createEncodingsToIterate
private static final List<org.apache.hadoop.hbase.io.encoding.DataBlockEncoding> createEncodingsToIterate() -
prepareTest
- Throws:
IOException
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
getRowKey
-
getQualifier
-
getValue
-
writeTestDataBatch
static void writeTestDataBatch(org.apache.hadoop.hbase.TableName tableName, int batchId) throws Exception - Throws:
Exception
-
verifyTestDataBatch
static void verifyTestDataBatch(org.apache.hadoop.hbase.TableName tableName, int batchId) throws Exception - Throws:
Exception
-
writeSomeNewData
- Throws:
Exception
-
verifyAllData
- Throws:
Exception
-
setEncodingConf
private void setEncodingConf(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding, boolean onlineChange) throws Exception - Throws:
Exception
-
testChangingEncoding
- Throws:
Exception
-
testChangingEncodingWithCompaction
- Throws:
Exception
-
compactAndWait
- Throws:
IOExceptionInterruptedException
-
testCrazyRandomChanges
- Throws:
Exception
-