Class TestPerColumnFamilyFlush
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestPerColumnFamilyFlush
This test verifies the correctness of the Per Column Family flushing strategy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.apache.hadoop.fs.Pathstatic final byte[][]static final byte[]static final byte[]static final byte[]private static final org.slf4j.Loggerstatic final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.client.GetcreateGet(int familyNum, int putNum) private org.apache.hadoop.hbase.client.PutcreatePut(int familyNum, int putNum) private voiddoPut(org.apache.hadoop.hbase.client.Table table, long memstoreFlushSize) private voidprivate intgetNumRolledLogFiles(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.WALgetWAL(org.apache.hadoop.hbase.regionserver.Region region) private org.apache.hadoop.hbase.regionserver.HRegioninitHRegion(String callingMethod, org.apache.hadoop.conf.Configuration conf) static voidvoidvoidWhen a log roll is about to happen, we do a flush of the regions who will be affected by the log roll.voidvoidvoid(package private) voidverifyEdit(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- 
TestPerColumnFamilyFlushpublic TestPerColumnFamilyFlush()
 
- 
- 
Method Details- 
initHRegionprivate org.apache.hadoop.hbase.regionserver.HRegion initHRegion(String callingMethod, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
- IOException
 
- 
createPut
- 
createGet
- 
verifyEditvoid verifyEdit(int familyNum, int putNum, org.apache.hadoop.hbase.client.Table table) throws IOException - Throws:
- IOException
 
- 
testSelectiveFlushWhenEnabled- Throws:
- IOException
 
- 
testSelectiveFlushWhenNotEnabled- Throws:
- IOException
 
- 
getRegionWithNameprivate 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
- 
testFlushingWhenLogRollingWhen 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
 
- 
doPutprivate void doPut(org.apache.hadoop.hbase.client.Table table, long memstoreFlushSize) throws IOException, InterruptedException - Throws:
- IOException
- InterruptedException
 
- 
testCompareStoreFileCount- Throws:
- Exception
 
- 
main- Throws:
- Exception
 
 
-