public class TestPerColumnFamilyFlush extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.fs.Path |
DIR |
static byte[][] |
FAMILIES |
static byte[] |
FAMILY1 |
static byte[] |
FAMILY2 |
static byte[] |
FAMILY3 |
private static org.slf4j.Logger |
LOG |
static org.apache.hadoop.hbase.TableName |
TABLENAME |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestPerColumnFamilyFlush() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.client.Get |
createGet(int familyNum,
int putNum) |
private org.apache.hadoop.hbase.client.Put |
createPut(int familyNum,
int putNum) |
private void |
doPut(org.apache.hadoop.hbase.client.Table table,
long memstoreFlushSize) |
private void |
doTestLogReplay() |
private int |
getNumRolledLogFiles(org.apache.hadoop.hbase.regionserver.Region region) |
private static org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.regionserver.HRegion,org.apache.hadoop.hbase.regionserver.HRegionServer> |
getRegionWithName(org.apache.hadoop.hbase.TableName tableName) |
private org.apache.hadoop.hbase.wal.WAL |
getWAL(org.apache.hadoop.hbase.regionserver.Region region) |
private org.apache.hadoop.hbase.regionserver.HRegion |
initHRegion(String callingMethod,
org.apache.hadoop.conf.Configuration conf) |
static void |
main(String[] args) |
void |
testCompareStoreFileCount() |
void |
testFlushingWhenLogRolling()
When a log roll is about to happen, we do a flush of the regions who will be affected by the
log roll.
|
void |
testLogReplayWithDistributedLogSplit() |
void |
testSelectiveFlushWhenEnabled() |
void |
testSelectiveFlushWhenNotEnabled() |
(package private) void |
verifyEdit(int familyNum,
int putNum,
org.apache.hadoop.hbase.client.Table table) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final org.apache.hadoop.fs.Path DIR
public static final org.apache.hadoop.hbase.TableName TABLENAME
public static final byte[][] FAMILIES
public static final byte[] FAMILY1
public static final byte[] FAMILY2
public static final byte[] FAMILY3
public TestPerColumnFamilyFlush()
private org.apache.hadoop.hbase.regionserver.HRegion initHRegion(String callingMethod, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
private org.apache.hadoop.hbase.client.Put createPut(int familyNum, int putNum)
private org.apache.hadoop.hbase.client.Get createGet(int familyNum, int putNum)
void verifyEdit(int familyNum, int putNum, org.apache.hadoop.hbase.client.Table table) throws IOException
IOException
public void testSelectiveFlushWhenEnabled() throws IOException
IOException
public void testSelectiveFlushWhenNotEnabled() throws IOException
IOException
private static org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.regionserver.HRegion,org.apache.hadoop.hbase.regionserver.HRegionServer> getRegionWithName(org.apache.hadoop.hbase.TableName tableName)
private void doTestLogReplay() throws Exception
Exception
public void testLogReplayWithDistributedLogSplit() throws Exception
Exception
private org.apache.hadoop.hbase.wal.WAL getWAL(org.apache.hadoop.hbase.regionserver.Region region)
private int getNumRolledLogFiles(org.apache.hadoop.hbase.regionserver.Region region)
public void testFlushingWhenLogRolling() throws Exception
Exception
private void doPut(org.apache.hadoop.hbase.client.Table table, long memstoreFlushSize) throws IOException, InterruptedException
IOException
InterruptedException
public void testCompareStoreFileCount() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.