public abstract class WALDurabilityTestBase<T extends org.apache.hadoop.hbase.wal.WAL> extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
COLUMN_FAMILY |
private static byte[] |
COLUMN_FAMILY_BYTES |
private org.apache.hadoop.conf.Configuration |
conf |
private String |
dir |
org.junit.rules.TestName |
name |
protected org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
WALDurabilityTestBase() |
Modifier and Type | Method and Description |
---|---|
private String |
getName() |
protected abstract Boolean |
getSyncFlag(T wal) |
protected abstract T |
getWAL(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path root,
String logDir,
org.apache.hadoop.conf.Configuration conf) |
protected abstract Boolean |
getWriterSyncFlag(T wal) |
static org.apache.hadoop.hbase.regionserver.HRegion |
initHRegion(org.apache.hadoop.hbase.TableName tableName,
byte[] startKey,
byte[] stopKey,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.wal.WAL wal) |
protected abstract void |
resetSyncFlag(T wal) |
void |
setUp() |
void |
tearDown() |
void |
testWALDurability() |
private static final String COLUMN_FAMILY
private static final byte[] COLUMN_FAMILY_BYTES
private static final HBaseTestingUtility TEST_UTIL
private org.apache.hadoop.conf.Configuration conf
public org.junit.rules.TestName name
protected org.apache.hadoop.hbase.TableName tableName
public WALDurabilityTestBase()
public void setUp() throws IOException
IOException
public void tearDown() throws IOException
IOException
protected abstract T getWAL(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path root, String logDir, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
protected abstract void resetSyncFlag(T wal)
protected abstract Boolean getSyncFlag(T wal)
protected abstract Boolean getWriterSyncFlag(T wal)
public void testWALDurability() throws IOException
IOException
public static org.apache.hadoop.hbase.regionserver.HRegion initHRegion(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] stopKey, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.wal.WAL wal) throws IOException
HBaseTestingUtility.closeRegionAndWAL(HRegion)
when done.IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.