Class TestWALPlayer
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestWALPlayer
Basic test for the WALPlayer M/R tool
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static SingleProcessHBaseClusterprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.fs.FileSystemprivate static org.apache.hadoop.fs.FileSystemorg.junit.rules.TestNameprivate static org.apache.hadoop.fs.Pathprivate static final HBaseTestingUtilprivate static org.apache.hadoop.fs.Path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprivate static voidvoidTest main methodvoidTest that WALPlayer can replay recovered.edits files.voidTest WALKeyValueMapper setup and mapprivate voidtestWALKeyValueMapper(String tableConfigKey) voidvoidSimple end-to-end testvoidTests that when you write multiple cells with the same timestamp they are properly sorted by their sequenceId in WALPlayer/CellSortReducer so that the correct one wins when querying from the resulting bulkloaded HFiles.
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
cluster
-
rootDir
-
walRootDir
-
fs
-
logFs
-
conf
-
name
-
-
Constructor Details
-
TestWALPlayer
public TestWALPlayer()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
testPlayingRecoveredEdit
Test that WALPlayer can replay recovered.edits files.- Throws:
Exception
-
testWALPlayerBulkLoadWithOverriddenTimestamps
Tests that when you write multiple cells with the same timestamp they are properly sorted by their sequenceId in WALPlayer/CellSortReducer so that the correct one wins when querying from the resulting bulkloaded HFiles. See HBASE-27649- Throws:
Exception
-
testWALPlayer
Simple end-to-end test- Throws:
Exception
-
testWALKeyValueMapper
Test WALKeyValueMapper setup and map- Throws:
Exception
-
testWALKeyValueMapperWithDeprecatedConfig
- Throws:
Exception
-
testWALKeyValueMapper
- Throws:
Exception
-
testMainMethod
Test main method- Throws:
Exception
-
runWithDiskBasedSortingDisabledAndEnabled
private static void runWithDiskBasedSortingDisabledAndEnabled(TestWALPlayer.TestMethod method) throws Exception - Throws:
Exception
-