public class TestWALFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TestWALFactory.DumbWALActionsListener |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hdfs.MiniDFSCluster |
cluster |
protected static org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.hbase.ServerName |
currentServername |
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 |
private static org.slf4j.Logger |
LOG |
protected static HBaseTestingUtility |
TEST_UTIL |
protected org.apache.hadoop.hbase.wal.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() |
private void |
verifySplits(List<org.apache.hadoop.fs.Path> splits,
int howmany) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hdfs.MiniDFSCluster cluster
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 org.apache.hadoop.hbase.wal.WALFactory wals
private org.apache.hadoop.hbase.ServerName currentServername
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
Exceptionprivate void verifySplits(List<org.apache.hadoop.fs.Path> splits, int howmany) throws IOException
IOExceptionpublic 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–2021 The Apache Software Foundation. All rights reserved.