public class TestLogRollAbort extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private static SingleProcessHBaseCluster |
cluster |
private org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.hadoop.hdfs.MiniDFSCluster |
dfsCluster |
private org.apache.hadoop.fs.FileSystem |
fs |
private static org.apache.hadoop.fs.Path |
HBASEDIR |
private static org.apache.hadoop.fs.Path |
HBASELOGDIR |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.fs.Path |
OLDLOGDIR |
protected static HBaseTestingUtil |
TEST_UTIL |
String |
walProvider |
Constructor and Description |
---|
TestLogRollAbort() |
Modifier and Type | Method and Description |
---|---|
private <W extends org.apache.hadoop.hbase.wal.WALProvider.WriterBase> |
closeWriter(org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL<W> wal) |
static List<Object[]> |
params() |
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
void |
testLogRollAfterSplitStart()
Tests the case where a RegionServer enters a GC pause, comes back online after the master
declared it dead and started to split.
|
void |
testRSAbortWithUnflushedEdits()
Tests that RegionServer aborts if we hit an error closing the WAL when there are unsynced WAL
edits.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hdfs.MiniDFSCluster dfsCluster
private static org.apache.hadoop.hbase.client.Admin admin
private static SingleProcessHBaseCluster cluster
protected static final HBaseTestingUtil TEST_UTIL
private static final org.apache.hadoop.fs.Path HBASEDIR
private static final org.apache.hadoop.fs.Path HBASELOGDIR
private static final org.apache.hadoop.fs.Path OLDLOGDIR
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.fs.FileSystem fs
public String walProvider
public TestLogRollAbort()
public static void setUpBeforeClass() throws Exception
Exception
public void testRSAbortWithUnflushedEdits() throws Exception
Exception
public void testLogRollAfterSplitStart() throws IOException
IOException
private <W extends org.apache.hadoop.hbase.wal.WALProvider.WriterBase> void closeWriter(org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL<W> wal)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.