public class TestFileSystemUtilizationChore extends Object
FileSystemUtilizationChore
.Modifier and Type | Class and Description |
---|---|
private static class |
TestFileSystemUtilizationChore.ExpectedRegionSizeSummationAnswer
An Answer implementation which verifies the sum of the Region sizes to report is as expected.
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
Constructor and Description |
---|
TestFileSystemUtilizationChore() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
getDefaultHBaseConfiguration()
Creates an HBase Configuration object for the default values.
|
private org.apache.hadoop.hbase.regionserver.Region |
mockRegionReplicaWithSize(Collection<Long> storeSizes)
Creates a region who has a replicaId of
1 . |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
mockRegionServer(org.apache.hadoop.conf.Configuration conf)
Creates an HRegionServer using the given Configuration.
|
private org.apache.hadoop.hbase.regionserver.Region |
mockRegionWithHFileLinks(Collection<Long> storeSizes,
Collection<Long> hfileSizes) |
private org.apache.hadoop.hbase.regionserver.Region |
mockRegionWithSize(Collection<Long> storeSizes)
Creates a region with a number of Stores equal to the length of
storeSizes . |
private org.apache.hadoop.hbase.regionserver.Region |
mockSplitParentRegionWithSize(Collection<Long> storeSizes)
Creates a region which is the parent of a split.
|
private long |
sum(Collection<Long> values)
Sums the collection of non-null numbers.
|
void |
testDefaultConfigurationProperties() |
void |
testIgnoreRegionReplicas() |
void |
testIgnoreSplitParents() |
void |
testMultipleRegionSizes() |
void |
testNonDefaultConfigurationProperties() |
void |
testNonHFilesAreIgnored() |
void |
testNoOnlineRegions() |
void |
testProcessingLeftoverRegions() |
void |
testProcessingNowOfflineLeftoversAreIgnored() |
void |
testRegionSizes() |
public static final HBaseClassTestRule CLASS_RULE
public TestFileSystemUtilizationChore()
public void testNoOnlineRegions()
public void testRegionSizes()
public void testMultipleRegionSizes()
public void testDefaultConfigurationProperties()
public void testNonDefaultConfigurationProperties()
public void testProcessingLeftoverRegions()
public void testProcessingNowOfflineLeftoversAreIgnored()
public void testIgnoreSplitParents()
public void testIgnoreRegionReplicas()
public void testNonHFilesAreIgnored()
private org.apache.hadoop.conf.Configuration getDefaultHBaseConfiguration()
private org.apache.hadoop.hbase.regionserver.HRegionServer mockRegionServer(org.apache.hadoop.conf.Configuration conf)
private long sum(Collection<Long> values)
private org.apache.hadoop.hbase.regionserver.Region mockRegionWithSize(Collection<Long> storeSizes)
storeSizes
. Each
Store
will have a reported size corresponding to the element in storeSizes
.storeSizes
- A list of sizes for each Store.private org.apache.hadoop.hbase.regionserver.Region mockRegionWithHFileLinks(Collection<Long> storeSizes, Collection<Long> hfileSizes)
private org.apache.hadoop.hbase.regionserver.Region mockSplitParentRegionWithSize(Collection<Long> storeSizes)
storeSizes
- A list of sizes for each Store.private org.apache.hadoop.hbase.regionserver.Region mockRegionReplicaWithSize(Collection<Long> storeSizes)
1
.storeSizes
- A list of sizes for each Store.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.