Class TestLogRolling
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.AbstractTestLogRolling
org.apache.hadoop.hbase.regionserver.wal.TestLogRolling
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.LoggerFields inherited from class org.apache.hadoop.hbase.regionserver.wal.AbstractTestLogRolling
admin, cluster, dfsCluster, EXECUTOR, fs, name, server, syncLatencyMillis, tableName, TEST_UTIL, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidbatchWriteAndWait(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.regionserver.wal.FSHLog log, int start, boolean expect, int timeout) protected voidsetDefaultLogWriter(org.apache.hadoop.conf.Configuration conf) protected voidsetSlowLogWriter(org.apache.hadoop.conf.Configuration conf) static voidvoidTests that logs are rolled upon detecting datanode death Requires an HDFS jar with HDFS-826 & syncFs() support (HDFS-200)voidTest that WAL is rolled when all data nodes in the pipeline have been restarted.voidMethods 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:
setSlowLogWriterin classAbstractTestLogRolling
-
setDefaultLogWriter
- Specified by:
setDefaultLogWriterin 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
-