Class TestRecoveredEdits
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRecoveredEdits
Tests around replay of recovered.edits content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.io.hfile.BlockCachestatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerstatic final org.apache.hadoop.hbase.client.ColumnFamilyDescriptorstatic final byte[]Column family referenced by edits in the recovered.edits file.static final org.apache.hadoop.fs.PathPath to a recovered.edits file in hbase-server test resources folder.static final StringName of table referenced by edits in the recovered.edits file.static final byte[][]private static final HBaseTestingUtilorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidName of table mentioned edits from recovered.editsvoidHBASE-12782 ITBLL fails for me if generator does anything but 5M per maptask.private voidtestReplayWorksWithMemoryCompactionPolicy(org.apache.hadoop.hbase.MemoryCompactionPolicy policy) static intverifyAllEditsMadeItIn(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path edits, org.apache.hadoop.hbase.regionserver.HRegion region) Returns Return how many edits seen.
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
LOG
-
blockCache
-
testName
-
RECOVEREDEDITS_PATH
Path to a recovered.edits file in hbase-server test resources folder. This is a little fragile getting this path to a file of 10M of edits. -
RECOVEREDEDITS_TABLENAME
Name of table referenced by edits in the recovered.edits file.- See Also:
-
RECOVEREDEDITS_COLUMNFAMILY
Column family referenced by edits in the recovered.edits file. -
RECOVEREDITS_COLUMNFAMILY_ARRAY
-
RECOVEREDEDITS_CFD
-
-
Constructor Details
-
TestRecoveredEdits
public TestRecoveredEdits()
-
-
Method Details
-
setUpBeforeClass
Name of table mentioned edits from recovered.edits- Throws:
Exception
-
testReplayWorksThoughLotsOfFlushing
HBASE-12782 ITBLL fails for me if generator does anything but 5M per maptask. Create a region. Close it. Then copy into place a file to replay, one that is bigger than configured flush size so we bring on lots of flushes. Then reopen and confirm all edits made it in.- Throws:
IOException
-
testReplayWorksWithMemoryCompactionPolicy
private void testReplayWorksWithMemoryCompactionPolicy(org.apache.hadoop.hbase.MemoryCompactionPolicy policy) throws IOException - Throws:
IOException
-
verifyAllEditsMadeItIn
public static int verifyAllEditsMadeItIn(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path edits, org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException Returns Return how many edits seen.- Throws:
IOException
-