Class TestDirectStoreSplitsMerges
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestDirectStoreSplitsMerges
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRulestatic final byte[]org.junit.rules.TestNameprivate static HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidafter()private org.apache.hadoop.fs.PathmergeFileFromRegion(org.apache.hadoop.hbase.regionserver.HRegionFileSystem regionFS, org.apache.hadoop.hbase.regionserver.HRegion regionToMerge, org.apache.hadoop.hbase.regionserver.HStoreFile file) private voidputThreeRowsAndFlush(org.apache.hadoop.hbase.TableName table) static voidsetup()voidvoidvoidvoidvoidprivate voidvalidateResultingFile(String originalRegion, org.apache.hadoop.fs.Path result) private voidwaitForSplitProcComplete(int attempts, int waitTime)
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
FAMILY_NAME
-
name
-
-
Constructor Details
-
TestDirectStoreSplitsMerges
public TestDirectStoreSplitsMerges()
-
-
Method Details
-
setup
- Throws:
Exception
-
after
- Throws:
Exception
-
testSplitStoreDir
- Throws:
Exception
-
testMergeStoreFile
- Throws:
Exception
-
testCommitDaughterRegionNoFiles
- Throws:
Exception
-
testCommitDaughterRegionWithFiles
- Throws:
Exception
-
testCommitMergedRegion
- Throws:
Exception
-
waitForSplitProcComplete
- Throws:
Exception
-
mergeFileFromRegion
private org.apache.hadoop.fs.Path mergeFileFromRegion(org.apache.hadoop.hbase.regionserver.HRegionFileSystem regionFS, org.apache.hadoop.hbase.regionserver.HRegion regionToMerge, org.apache.hadoop.hbase.regionserver.HStoreFile file) throws IOException - Throws:
IOException
-
validateResultingFile
-
putThreeRowsAndFlush
- Throws:
IOException
-