public abstract class AbstractTestLogRolling extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Admin |
admin |
protected MiniHBaseCluster |
cluster |
protected org.apache.hadoop.hdfs.MiniDFSCluster |
dfsCluster |
protected org.apache.hadoop.fs.FileSystem |
fs |
org.junit.rules.TestName |
name |
protected HRegionServer |
server |
protected String |
tableName |
protected static HBaseTestingUtility |
TEST_UTIL |
protected byte[] |
value |
| Constructor and Description |
|---|
AbstractTestLogRolling() |
| Modifier and Type | Method and Description |
|---|---|
protected Table |
createTestTable(String tableName) |
protected void |
doPut(Table table,
int i) |
protected String |
getName() |
void |
setUp() |
static void |
setUpBeforeClass() |
protected void |
startAndWriteData() |
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 |
testLogRollOnNothingWritten()
Tests that log rolling doesn't hang when no data is written.
|
protected HRegionServer server
protected byte[] value
protected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.hdfs.MiniDFSCluster dfsCluster
protected MiniHBaseCluster cluster
protected static final HBaseTestingUtility TEST_UTIL
public final org.junit.rules.TestName name
public AbstractTestLogRolling()
public static void setUpBeforeClass() throws Exception
Exceptionprotected void startAndWriteData() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testLogRollOnNothingWritten() throws Exception
Exceptionpublic void testLogRolling() throws Exception
Exceptionpublic void testCompactionRecordDoesntBlockRolling() throws Exception
Exceptionprotected void doPut(Table table, int i) throws IOException
IOExceptionprotected Table createTestTable(String tableName) throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.