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, writeData
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestLogRolling()
public static void setUpBeforeClass() throws Exception
Exception
public void testSlowSyncLogRolling() throws Exception
Exception
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
IOException
public void testLogRollOnDatanodeDeath() throws Exception
Exception
public void testLogRollOnPipelineRestart() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.