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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void canCloseSingleton() throws IOException
IOException
public void testSplit() throws IOException
IOException
public void Broken_testSync() throws Exception
Exception
private void verifySplits(List<org.apache.hadoop.fs.Path> splits, int howmany) throws IOException
IOException
public void testAppendClose() throws Exception
Exception
public void testEditAdd() throws IOException
IOException
public void testAppend() throws IOException
IOException
public void testVisitors() throws Exception
Exception
public void testWALCoprocessorLoaded() throws Exception
Exception
public void testWALProviders() throws IOException
IOException
public void testOnlySetWALProvider() throws IOException
IOException
public void testOnlySetMetaWALProvider() throws IOException
IOException
public void testDefaultProvider() throws IOException
IOException
public void testCustomProvider() throws IOException
IOException
public void testCustomMetaProvider() throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.