public class TestMajorCompactionRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
protected static String |
FAMILY |
protected org.apache.hadoop.fs.Path |
regionStoreDir |
protected org.apache.hadoop.fs.Path |
rootRegionDir |
protected static HBaseTestingUtility |
UTILITY |
| Constructor and Description |
|---|
TestMajorCompactionRequest() |
| Modifier and Type | Method and Description |
|---|---|
private 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 |
testIfWeHaveNewReferenceFilesButOldStoreFiles() |
void |
testStoresNeedingCompaction() |
public static final HBaseClassTestRule CLASS_RULE
protected static final HBaseTestingUtility UTILITY
protected static final String FAMILY
protected org.apache.hadoop.fs.Path rootRegionDir
protected org.apache.hadoop.fs.Path regionStoreDir
public TestMajorCompactionRequest()
public void testStoresNeedingCompaction() throws Exception
Exceptionpublic void testIfWeHaveNewReferenceFilesButOldStoreFiles() throws Exception
Exceptionprotected 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
IOExceptionprivate 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
IOExceptionprotected List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> mockStoreFiles(org.apache.hadoop.fs.Path regionStoreDir, int howMany, long timestamp) throws IOException
IOExceptionprivate org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest makeMockRequest(List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> storeFiles, boolean references) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.