Class TestRecoveredEdits
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRecoveredEdits
Tests around replay of recovered.edits content.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.io.hfile.BlockCache
static final HBaseClassTestRule
private static final org.slf4j.Logger
static final org.apache.hadoop.hbase.client.ColumnFamilyDescriptor
static final byte[]
Column family referenced by edits in the recovered.edits file.static final org.apache.hadoop.fs.Path
Path to a recovered.edits file in hbase-server test resources folder.static final String
Name of table referenced by edits in the recovered.edits file.static final byte[][]
private static final HBaseTestingUtil
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Name of table mentioned edits from recovered.editsvoid
HBASE-12782 ITBLL fails for me if generator does anything but 5M per maptask.private void
testReplayWorksWithMemoryCompactionPolicy
(org.apache.hadoop.hbase.MemoryCompactionPolicy policy) 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) 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
-