Class TestLogRollAbort
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.TestLogRollAbort
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestLogRollAbort
extends Object
Tests for conditions that should trigger RegionServer aborts when rolling the current WAL fails.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminprivate static SingleProcessHBaseClusterprivate org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.hdfs.MiniDFSClusterprivate org.apache.hadoop.fs.FileSystemprivate static final org.apache.hadoop.fs.Pathprivate static final org.apache.hadoop.fs.Pathprivate static final org.slf4j.Loggerprivate static final org.apache.hadoop.fs.Pathprotected static final HBaseTestingUtilprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <W extends org.apache.hadoop.hbase.wal.WALProvider.WriterBase>
voidcloseWriter(org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL<W> wal) static Stream<org.junit.jupiter.params.provider.Arguments>voidsetUp()static voidvoidtearDown()voidTests the case where a RegionServer enters a GC pause, comes back online after the master declared it dead and started to split.voidTests that RegionServer aborts if we hit an error closing the WAL when there are unsynced WAL edits.
-
Field Details
-
LOG
-
dfsCluster
-
admin
-
cluster
-
TEST_UTIL
-
HBASEDIR
-
HBASELOGDIR
-
OLDLOGDIR
-
conf
-
fs
-
walProvider
-
-
Constructor Details
-
TestLogRollAbort
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
parameters
-
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)
-