Class TestPerColumnFamilyFlush
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestPerColumnFamilyFlush
This test verifies the correctness of the Per Column Family flushing strategy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.apache.hadoop.fs.Path
static final byte[][]
static final byte[]
static final byte[]
static final byte[]
private static final org.slf4j.Logger
static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
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
void
void
When a log roll is about to happen, we do a flush of the regions who will be affected by the log roll.void
void
void
(package private) void
verifyEdit
(int familyNum, int putNum, org.apache.hadoop.hbase.client.Table table)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
DIR
-
TABLENAME
-
FAMILIES
-
FAMILY1
-
FAMILY2
-
FAMILY3
-
-
Constructor Details
-
TestPerColumnFamilyFlush
public TestPerColumnFamilyFlush()
-
-
Method Details
-
initHRegion
private org.apache.hadoop.hbase.regionserver.HRegion initHRegion(String callingMethod, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
createPut
-
createGet
-
verifyEdit
void verifyEdit(int familyNum, int putNum, org.apache.hadoop.hbase.client.Table table) throws IOException - Throws:
IOException
-
testSelectiveFlushWhenEnabled
- Throws:
IOException
-
testSelectiveFlushWhenNotEnabled
- Throws:
IOException
-
getRegionWithName
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) -
doTestLogReplay
- Throws:
Exception
-
testLogReplayWithDistributedLogSplit
- Throws:
Exception
-
getWAL
-
getNumRolledLogFiles
-
testFlushingWhenLogRolling
When a log roll is about to happen, we do a flush of the regions who will be affected by the log roll. These flushes cannot be a selective flushes, otherwise we cannot roll the logs. This test ensures that we do a full-flush in that scenario.- Throws:
Exception
-
doPut
private void doPut(org.apache.hadoop.hbase.client.Table table, long memstoreFlushSize) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
testCompareStoreFileCount
- Throws:
Exception
-
main
- Throws:
Exception
-