Class TestLogRollAbort
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.TestLogRollAbort
Tests for conditions that should trigger RegionServer aborts when rolling the current WAL fails.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private static SingleProcessHBaseCluster
private org.apache.hadoop.conf.Configuration
private static org.apache.hadoop.hdfs.MiniDFSCluster
private org.apache.hadoop.fs.FileSystem
private static final org.apache.hadoop.fs.Path
private static final org.apache.hadoop.fs.Path
private static final org.slf4j.Logger
private static final org.apache.hadoop.fs.Path
protected static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate <W extends org.apache.hadoop.hbase.wal.WALProvider.WriterBase>
voidcloseWriter
(org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL<W> wal) params()
void
setUp()
static void
void
tearDown()
void
Tests the case where a RegionServer enters a GC pause, comes back online after the master declared it dead and started to split.void
Tests that RegionServer aborts if we hit an error closing the WAL when there are unsynced WAL edits.
-
Field Details
-
CLASS_RULE
-
LOG
-
dfsCluster
-
admin
-
cluster
-
TEST_UTIL
-
HBASEDIR
-
HBASELOGDIR
-
OLDLOGDIR
-
conf
-
fs
-
walProvider
-
-
Constructor Details
-
TestLogRollAbort
public TestLogRollAbort()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
params
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testRSAbortWithUnflushedEdits
Tests that RegionServer aborts if we hit an error closing the WAL when there are unsynced WAL edits. See HBASE-4282.- Throws:
Exception
-
testLogRollAfterSplitStart
Tests the case where a RegionServer enters a GC pause, comes back online after the master declared it dead and started to split. Want log rolling after a master split to fail. See HBASE-2312.- Throws:
IOException
-
closeWriter
private <W extends org.apache.hadoop.hbase.wal.WALProvider.WriterBase> void closeWriter(org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL<W> wal)
-