public class TestLogRolling extends AbstractTestLogRolling
| Modifier and Type | Field and Description | 
|---|---|
static HBaseClassTestRule | 
CLASS_RULE  | 
private static org.slf4j.Logger | 
LOG  | 
admin, cluster, dfsCluster, fs, name, server, tableName, TEST_UTIL, value| Constructor and Description | 
|---|
TestLogRolling()  | 
| Modifier and Type | Method and Description | 
|---|---|
(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)  | 
static void | 
setUpBeforeClass()  | 
void | 
testLogRollOnDatanodeDeath()
Tests that logs are rolled upon detecting datanode death Requires an HDFS jar with HDFS-826 &
 syncFs() support (HDFS-200) 
 | 
void | 
testLogRollOnPipelineRestart()
Test that WAL is rolled when all data nodes in the pipeline have been restarted. 
 | 
void | 
testSlowSyncLogRolling()  | 
createTestTable, doPut, getName, setUp, startAndWriteData, tearDown, testCompactionRecordDoesntBlockRolling, testLogRolling, testLogRollOnNothingWritten, validateData, writeDatapublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestLogRolling()
public static void setUpBeforeClass() throws Exception
Exceptionpublic void testSlowSyncLogRolling() throws Exception
Exceptionvoid batchWriteAndWait(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.regionserver.wal.FSHLog log, int start, boolean expect, int timeout) throws IOException
IOExceptionpublic void testLogRollOnDatanodeDeath() throws Exception
Exceptionpublic void testLogRollOnPipelineRestart() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.