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
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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
-
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:
IOExceptionInterruptedException
-
testCompareStoreFileCount
- Throws:
Exception
-
main
- Throws:
Exception
-