Package org.apache.hadoop.hbase.wal
Class TestWALFactory
java.lang.Object
org.apache.hadoop.hbase.wal.TestWALFactory
WAL tests that can be reused across providers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classA custom WALCellCodec in which we can inject failure.(package private) static classprivate static classA proxy around FSDataInputStream which can report if close() was called. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.hdfs.MiniDFSClusterprotected static org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.hbase.ServerNamefinal org.junit.rules.TestNameprotected org.apache.hadoop.fs.Pathprotected org.apache.hadoop.fs.FileSystemprotected static org.apache.hadoop.fs.Pathprotected static org.apache.hadoop.fs.Pathprivate static final org.slf4j.Loggerprotected static final HBaseTestingUtilityprotected org.apache.hadoop.hbase.wal.WALFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest new HDFS-265 sync.voidvoidsetUp()static voidvoidtearDown()static voidvoidvoidvoidvoidvoidvoidTests that we can write out an edit, close, and then read it back in again.voidvoidvoidvoidJust write multiple logs then split.voidTest that we can visit entries before they are appendedvoidA loaded WAL coprocessor won't break existing WAL test cases.voidprivate voidverifySplits(List<org.apache.hadoop.fs.Path> splits, int howmany)
-
Field Details
-
CLASS_RULE
-
LOG
-
conf
-
cluster
-
TEST_UTIL
-
hbaseDir
-
hbaseWALDir
-
fs
-
dir
-
wals
-
currentServername
-
currentTest
-
-
Constructor Details
-
TestWALFactory
public TestWALFactory()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
canCloseSingleton
- Throws:
IOException
-
testSplit
Just write multiple logs then split. Before fix for HADOOP-2283, this would fail.- Throws:
IOException
-
Broken_testSync
Test new HDFS-265 sync.- Throws:
Exception
-
verifySplits
- Throws:
IOException
-
testAppendClose
- Throws:
Exception
-
testEditAdd
Tests that we can write out an edit, close, and then read it back in again.- Throws:
IOException
-
testAppend
- Throws:
IOException
-
testVisitors
Test that we can visit entries before they are appended- Throws:
Exception
-
testWALCoprocessorLoaded
A loaded WAL coprocessor won't break existing WAL test cases.- Throws:
Exception
-
testWALProviders
- Throws:
IOException
-
testOnlySetWALProvider
- Throws:
IOException
-
testOnlySetMetaWALProvider
- Throws:
IOException
-
testDefaultProvider
- Throws:
IOException
-
testCustomProvider
- Throws:
IOException
-
testCustomMetaProvider
- Throws:
IOException
-
testReaderClosedOnBadCodec
- Throws:
IOException
-