public class TestLogRolling
extends java.lang.Object
| Constructor and Description |
|---|
TestLogRolling() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
void |
testCompactionRecordDoesntBlockRolling()
Tests that logs are deleted when some region has a compaction
record in WAL and no other records.
|
void |
testLogRolling()
Tests that logs are deleted
|
void |
testLogRollOnDatanodeDeath()
Tests that logs are rolled upon detecting datanode death
Requires an HDFS jar with HDFS-826 & syncFs() support (HDFS-200)
|
void |
testLogRollOnNothingWritten()
Tests that log rolling doesn't hang when no data is written.
|
void |
testLogRollOnPipelineRestart()
Test that WAL is rolled when all data nodes in the pipeline have been
restarted.
|
public static void setUpBeforeClass()
throws java.lang.Exception
java.lang.Exceptionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testLogRollOnNothingWritten()
throws java.lang.Exception
java.lang.Exceptionpublic void testLogRolling()
throws java.lang.Exception
java.io.IOExceptionorg.apache.hadoop.hbase.regionserver.wal.FailedLogCloseExceptionjava.lang.Exceptionpublic void testLogRollOnDatanodeDeath()
throws java.lang.Exception
java.lang.Exceptionpublic void testLogRollOnPipelineRestart()
throws java.lang.Exception
java.lang.Exceptionpublic void testCompactionRecordDoesntBlockRolling()
throws java.lang.Exception
java.lang.Exception