public class TestFavoredStochasticBalancerPickers extends BalancerTestBase
BalancerTestBase.MockMapping| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private MiniHBaseCluster |
cluster |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static int |
REGIONS |
private static int |
SLAVES |
private static HBaseTestingUtility |
TEST_UTIL |
clusterStateMocks, largeCluster, loadBalancer, regionId| Constructor and Description |
|---|
TestFavoredStochasticBalancerPickers() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
doesMatchExcludeNodes(List<org.apache.hadoop.hbase.ServerName> excludeNodes,
org.apache.hadoop.hbase.ServerName sn) |
private List<org.apache.hadoop.hbase.client.RegionInfo> |
getRegionsThatCanBeMoved(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.ServerName serverName) |
private org.apache.hadoop.hbase.ServerName |
getRSWithMaxRegions(org.apache.hadoop.hbase.TableName tableName,
List<org.apache.hadoop.hbase.ServerName> excludeNodes) |
private List<org.apache.hadoop.hbase.client.RegionInfo> |
getTableRegionsFromServer(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.ServerName source) |
static void |
setupBeforeClass() |
void |
startCluster() |
void |
stopCluster() |
void |
testPickers() |
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, beforeAllTests, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, uniformRegions, updateLoadpublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final int SLAVES
private static final int REGIONS
private static org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.hbase.client.Admin admin
private MiniHBaseCluster cluster
public org.junit.rules.TestName name
public TestFavoredStochasticBalancerPickers()
public static void setupBeforeClass() throws Exception
Exceptionpublic void startCluster() throws Exception
Exceptionpublic void stopCluster() throws Exception
Exceptionpublic void testPickers() throws Exception
Exceptionprivate List<org.apache.hadoop.hbase.client.RegionInfo> getRegionsThatCanBeMoved(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.ServerName serverName)
private List<org.apache.hadoop.hbase.client.RegionInfo> getTableRegionsFromServer(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.ServerName source) throws IOException
IOExceptionprivate org.apache.hadoop.hbase.ServerName getRSWithMaxRegions(org.apache.hadoop.hbase.TableName tableName, List<org.apache.hadoop.hbase.ServerName> excludeNodes) throws IOException
IOExceptionprivate boolean doesMatchExcludeNodes(List<org.apache.hadoop.hbase.ServerName> excludeNodes, org.apache.hadoop.hbase.ServerName sn)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.