Class TestMajorCompactionRequest
java.lang.Object
org.apache.hadoop.hbase.util.compaction.TestMajorCompactionRequest
- Direct Known Subclasses:
TestMajorCompactionTTLRequest
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
protected static final String
protected org.apache.hadoop.fs.Path
protected org.apache.hadoop.fs.Path
protected static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest
makeMockRequest
(List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> storeFiles, boolean references) protected org.apache.hadoop.hbase.regionserver.HRegionFileSystem
mockFileSystem
(org.apache.hadoop.hbase.client.RegionInfo info, boolean hasReferenceFiles, List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> storeFiles) private org.apache.hadoop.hbase.regionserver.HRegionFileSystem
mockFileSystem
(org.apache.hadoop.hbase.client.RegionInfo info, boolean hasReferenceFiles, List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> storeFiles, long referenceFileTimestamp) protected List<org.apache.hadoop.hbase.regionserver.StoreFileInfo>
mockStoreFiles
(org.apache.hadoop.fs.Path regionStoreDir, int howMany, long timestamp) void
setUp()
void
void
-
Field Details
-
CLASS_RULE
-
UTILITY
-
FAMILY
- See Also:
-
rootRegionDir
-
regionStoreDir
-
-
Constructor Details
-
TestMajorCompactionRequest
public TestMajorCompactionRequest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testStoresNeedingCompaction
- Throws:
Exception
-
testIfWeHaveNewReferenceFilesButOldStoreFiles
- Throws:
Exception
-
mockFileSystem
protected org.apache.hadoop.hbase.regionserver.HRegionFileSystem mockFileSystem(org.apache.hadoop.hbase.client.RegionInfo info, boolean hasReferenceFiles, List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> storeFiles) throws IOException - Throws:
IOException
-
mockFileSystem
private org.apache.hadoop.hbase.regionserver.HRegionFileSystem mockFileSystem(org.apache.hadoop.hbase.client.RegionInfo info, boolean hasReferenceFiles, List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> storeFiles, long referenceFileTimestamp) throws IOException - Throws:
IOException
-
mockStoreFiles
protected List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> mockStoreFiles(org.apache.hadoop.fs.Path regionStoreDir, int howMany, long timestamp) throws IOException - Throws:
IOException
-
makeMockRequest
private org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest makeMockRequest(List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> storeFiles, boolean references) throws IOException - Throws:
IOException
-