public abstract class AbstractTestLogRolling extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.hbase.client.Admin |
admin |
protected MiniHBaseCluster |
cluster |
protected org.apache.hadoop.hdfs.MiniDFSCluster |
dfsCluster |
protected org.apache.hadoop.fs.FileSystem |
fs |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
protected org.apache.hadoop.hbase.regionserver.HRegionServer |
server |
protected String |
tableName |
protected static HBaseTestingUtility |
TEST_UTIL |
protected byte[] |
value |
| Constructor and Description |
|---|
AbstractTestLogRolling() |
| Modifier and Type | Method and Description |
|---|---|
private void |
assertLogFileSize(org.apache.hadoop.hbase.wal.WAL log) |
protected org.apache.hadoop.hbase.client.Table |
createTestTable(String tableName) |
protected void |
doPut(org.apache.hadoop.hbase.client.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.
|
(package private) void |
validateData(org.apache.hadoop.hbase.client.Table table,
int rownum) |
(package private) void |
writeData(org.apache.hadoop.hbase.client.Table table,
int rownum) |
private static final org.slf4j.Logger LOG
protected org.apache.hadoop.hbase.regionserver.HRegionServer server
protected byte[] value
protected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.hdfs.MiniDFSCluster dfsCluster
protected org.apache.hadoop.hbase.client.Admin admin
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
Exceptionprivate void assertLogFileSize(org.apache.hadoop.hbase.wal.WAL log) throws InterruptedException
InterruptedExceptionpublic void testLogRolling() throws Exception
Exceptionvoid writeData(org.apache.hadoop.hbase.client.Table table, int rownum) throws IOException
IOExceptionvoid validateData(org.apache.hadoop.hbase.client.Table table, int rownum) throws IOException
IOExceptionpublic void testCompactionRecordDoesntBlockRolling() throws Exception
Exceptionprotected void doPut(org.apache.hadoop.hbase.client.Table table, int i) throws IOException
IOExceptionprotected org.apache.hadoop.hbase.client.Table createTestTable(String tableName) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.