Class TestLogRolling
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.AbstractTestLogRolling
org.apache.hadoop.hbase.regionserver.wal.TestLogRolling
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractTestLogRolling
admin, cluster, dfsCluster, EXECUTOR, fs, name, server, syncLatencyMillis, tableName, TEST_UTIL, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
batchWriteAndWait
(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.regionserver.wal.FSHLog log, int start, boolean expect, int timeout) protected void
setDefaultLogWriter
(org.apache.hadoop.conf.Configuration conf) protected void
setSlowLogWriter
(org.apache.hadoop.conf.Configuration conf) static void
void
Tests that logs are rolled upon detecting datanode death Requires an HDFS jar with HDFS-826 & syncFs() support (HDFS-200)void
Test that WAL is rolled when all data nodes in the pipeline have been restarted.void
Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractTestLogRolling
checkSlowSync, createTestTable, doPut, getName, getWALAndRegisterSlowSyncHook, setUp, tearDown, tearDownAfterClass, testCompactionRecordDoesntBlockRolling, testLogRolling, testLogRollOnNothingWritten, validateData, writeData
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestLogRolling
public TestLogRolling()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
setSlowLogWriter
- Specified by:
setSlowLogWriter
in classAbstractTestLogRolling
-
setDefaultLogWriter
- Specified by:
setDefaultLogWriter
in classAbstractTestLogRolling
-
batchWriteAndWait
void batchWriteAndWait(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.regionserver.wal.FSHLog log, int start, boolean expect, int timeout) throws IOException - Throws:
IOException
-
testSlowSyncLogRolling
- Throws:
Exception
-
testLogRollOnDatanodeDeath
Tests that logs are rolled upon detecting datanode death Requires an HDFS jar with HDFS-826 & syncFs() support (HDFS-200)- Throws:
Exception
-
testLogRollOnPipelineRestart
Test that WAL is rolled when all data nodes in the pipeline have been restarted.- Throws:
Exception
-