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
Exception
protected void startAndWriteData() throws IOException, InterruptedException
IOException
InterruptedException
public void testLogRollOnNothingWritten() throws Exception
Exception
private void assertLogFileSize(org.apache.hadoop.hbase.wal.WAL log) throws InterruptedException
InterruptedException
public void testLogRolling() throws Exception
Exception
void writeData(org.apache.hadoop.hbase.client.Table table, int rownum) throws IOException
IOException
void validateData(org.apache.hadoop.hbase.client.Table table, int rownum) throws IOException
IOException
public void testCompactionRecordDoesntBlockRolling() throws Exception
Exception
protected void doPut(org.apache.hadoop.hbase.client.Table table, int i) throws IOException
IOException
protected org.apache.hadoop.hbase.client.Table createTestTable(String tableName) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.