public class TestRegionHDFSBlockLocationFinder extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.master.balancer.RegionHDFSBlockLocationFinder |
finder |
private static List<org.apache.hadoop.hbase.client.RegionInfo> |
REGIONS |
private static Random |
RNG |
private static org.apache.hadoop.hbase.client.TableDescriptor |
TD |
Constructor and Description |
---|
TestRegionHDFSBlockLocationFinder() |
Modifier and Type | Method and Description |
---|---|
private void |
assertHostAndWeightEquals(org.apache.hadoop.hbase.HDFSBlocksDistribution expected,
org.apache.hadoop.hbase.HDFSBlocksDistribution actual) |
private static org.apache.hadoop.hbase.HDFSBlocksDistribution |
generate(org.apache.hadoop.hbase.client.RegionInfo region) |
private org.apache.hadoop.hbase.ClusterMetrics |
getMetricsWithLocality(org.apache.hadoop.hbase.ServerName serverName,
byte[] region,
float locality) |
void |
setUp() |
static void |
setUpBeforeClass() |
void |
testGetBlockDistribution() |
void |
testGetTopBlockLocations() |
void |
testMapHostNameToServerName() |
void |
testRefreshAndWait() |
void |
testRefreshRegionsWithChangedLocality() |
public static final HBaseClassTestRule CLASS_RULE
private static org.apache.hadoop.hbase.client.TableDescriptor TD
private org.apache.hadoop.hbase.master.balancer.RegionHDFSBlockLocationFinder finder
public TestRegionHDFSBlockLocationFinder()
private static org.apache.hadoop.hbase.HDFSBlocksDistribution generate(org.apache.hadoop.hbase.client.RegionInfo region)
public static void setUpBeforeClass()
public void setUp()
public void testMapHostNameToServerName() throws Exception
Exception
public void testRefreshAndWait() throws Exception
Exception
private void assertHostAndWeightEquals(org.apache.hadoop.hbase.HDFSBlocksDistribution expected, org.apache.hadoop.hbase.HDFSBlocksDistribution actual)
public void testGetBlockDistribution()
public void testGetTopBlockLocations()
public void testRefreshRegionsWithChangedLocality() throws InterruptedException
InterruptedException
private org.apache.hadoop.hbase.ClusterMetrics getMetricsWithLocality(org.apache.hadoop.hbase.ServerName serverName, byte[] region, float locality)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.