public class TestWALFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
protected static org.apache.hadoop.conf.Configuration |
conf |
org.junit.rules.TestName |
currentTest |
protected org.apache.hadoop.fs.Path |
dir |
protected org.apache.hadoop.fs.FileSystem |
fs |
protected static org.apache.hadoop.fs.Path |
hbaseDir |
protected static org.apache.hadoop.fs.Path |
hbaseWALDir |
protected static HBaseTestingUtility |
TEST_UTIL |
protected WALFactory |
wals |
| Constructor and Description |
|---|
TestWALFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
Broken_testSync()
Test new HDFS-265 sync.
|
void |
canCloseSingleton() |
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testAppend() |
void |
testAppendClose() |
void |
testCustomMetaProvider() |
void |
testCustomProvider() |
void |
testDefaultProvider() |
void |
testEditAdd()
Tests that we can write out an edit, close, and then read it back in again.
|
void |
testOnlySetMetaWALProvider() |
void |
testOnlySetWALProvider() |
void |
testSplit()
Just write multiple logs then split.
|
void |
testVisitors()
Test that we can visit entries before they are appended
|
void |
testWALCoprocessorLoaded()
A loaded WAL coprocessor won't break existing WAL test cases.
|
void |
testWALProviders() |
public static final HBaseClassTestRule CLASS_RULE
protected static org.apache.hadoop.conf.Configuration conf
protected static final HBaseTestingUtility TEST_UTIL
protected static org.apache.hadoop.fs.Path hbaseDir
protected static org.apache.hadoop.fs.Path hbaseWALDir
protected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.fs.Path dir
protected WALFactory wals
public final org.junit.rules.TestName currentTest
public TestWALFactory()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void canCloseSingleton() throws IOException
IOExceptionpublic void testSplit() throws IOException
IOExceptionpublic void Broken_testSync() throws Exception
Exceptionpublic void testAppendClose() throws Exception
Exceptionpublic void testEditAdd() throws IOException
IOExceptionpublic void testAppend() throws IOException
IOExceptionpublic void testVisitors() throws Exception
Exceptionpublic void testWALCoprocessorLoaded() throws Exception
Exceptionpublic void testWALProviders() throws IOException
IOExceptionpublic void testOnlySetWALProvider() throws IOException
IOExceptionpublic void testOnlySetMetaWALProvider() throws IOException
IOExceptionpublic void testDefaultProvider() throws IOException
IOExceptionpublic void testCustomProvider() throws IOException
IOExceptionpublic void testCustomMetaProvider() throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.