Class TestMergesSplitsAddToTracker
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestMergesSplitsAddToTracker
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final String
private static HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.regionserver.StoreFileInfo,
String> copyFileInTheStoreDir
(org.apache.hadoop.hbase.regionserver.HRegion region) private org.apache.hadoop.hbase.TableName
createTable
(byte[] splitKey) private org.apache.hadoop.fs.Path
mergeFileFromRegion
(org.apache.hadoop.hbase.regionserver.HRegion regionToMerge, org.apache.hadoop.hbase.regionserver.HRegionFileSystem mergeFS) private void
putThreeRowsAndFlush
(org.apache.hadoop.hbase.TableName table) void
setup()
static void
private void
split
(org.apache.hadoop.hbase.TableName table, byte[] splitKey) void
void
void
void
private void
validateDaughterRegionsFiles
(org.apache.hadoop.hbase.regionserver.HRegion region, String originalFileName, String untrackedFile) private void
verifyFilesAreTracked
(org.apache.hadoop.fs.Path regionDir, org.apache.hadoop.fs.FileSystem fs)
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
FAMILY_NAME_STR
- See Also:
-
FAMILY_NAME
-
name
-
-
Constructor Details
-
TestMergesSplitsAddToTracker
public TestMergesSplitsAddToTracker()
-
-
Method Details
-
setupClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
setup
-
createTable
- Throws:
IOException
-
testCommitDaughterRegion
- Throws:
Exception
-
testCommitMergedRegion
- Throws:
Exception
-
testSplitLoadsFromTracker
- Throws:
Exception
-
split
- Throws:
IOException
-
testMergeLoadsFromTracker
- Throws:
Exception
-
copyFileInTheStoreDir
private org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.regionserver.StoreFileInfo,String> copyFileInTheStoreDir(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
IOException
-
validateDaughterRegionsFiles
private void validateDaughterRegionsFiles(org.apache.hadoop.hbase.regionserver.HRegion region, String originalFileName, String untrackedFile) throws IOException - Throws:
IOException
-
verifyFilesAreTracked
private void verifyFilesAreTracked(org.apache.hadoop.fs.Path regionDir, org.apache.hadoop.fs.FileSystem fs) throws Exception - Throws:
Exception
-
mergeFileFromRegion
private org.apache.hadoop.fs.Path mergeFileFromRegion(org.apache.hadoop.hbase.regionserver.HRegion regionToMerge, org.apache.hadoop.hbase.regionserver.HRegionFileSystem mergeFS) throws IOException - Throws:
IOException
-
putThreeRowsAndFlush
- Throws:
IOException
-