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
Exception
public void testIfWeHaveNewReferenceFilesButOldStoreFiles() throws Exception
Exception
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
IOException
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
IOException
protected List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> mockStoreFiles(org.apache.hadoop.fs.Path regionStoreDir, int howMany, long timestamp) throws IOException
IOException
private org.apache.hadoop.hbase.util.compaction.MajorCompactionRequest makeMockRequest(List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> storeFiles, boolean references) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.