Class TestDirectStoreSplitsMerges
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestDirectStoreSplitsMerges
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
static final byte[]
org.junit.rules.TestName
private static HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
after()
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, org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker sft) private void
putThreeRowsAndFlush
(org.apache.hadoop.hbase.TableName table) static void
setup()
void
void
void
void
void
private void
validateResultingFile
(String originalRegion, org.apache.hadoop.fs.Path result) private void
waitForSplitProcComplete
(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, org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker sft) throws IOException - Throws:
IOException
-
validateResultingFile
-
putThreeRowsAndFlush
- Throws:
IOException
-