Class TestFavoredStochasticBalancerPickers
java.lang.Object
org.apache.hadoop.hbase.master.balancer.BalancerTestBase
org.apache.hadoop.hbase.master.balancer.TestFavoredStochasticBalancerPickers
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
BalancerTestBase.MockMapping
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private SingleProcessHBaseCluster
private static org.apache.hadoop.conf.Configuration
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final int
private static final int
private static final HBaseTestingUtil
Fields inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, largeCluster, regionId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
void
void
void
Methods inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServers, mockClusterServersUnsorted, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, uniformRegions, updateLoad
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
SLAVES
- See Also:
-
REGIONS
- See Also:
-
conf
-
admin
-
cluster
-
name
-
-
Constructor Details
-
TestFavoredStochasticBalancerPickers
public TestFavoredStochasticBalancerPickers()
-
-
Method Details
-
setupBeforeClass
- Throws:
Exception
-
startCluster
- Throws:
Exception
-
stopCluster
- Throws:
Exception
-
testPickers
- Throws:
Exception
-
getRegionsThatCanBeMoved
private List<org.apache.hadoop.hbase.client.RegionInfo> getRegionsThatCanBeMoved(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.ServerName serverName) -
getTableRegionsFromServer
private List<org.apache.hadoop.hbase.client.RegionInfo> getTableRegionsFromServer(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.ServerName source) throws IOException - Throws:
IOException
-
getRSWithMaxRegions
private org.apache.hadoop.hbase.ServerName getRSWithMaxRegions(org.apache.hadoop.hbase.TableName tableName, List<org.apache.hadoop.hbase.ServerName> excludeNodes) throws IOException - Throws:
IOException
-
doesMatchExcludeNodes
private boolean doesMatchExcludeNodes(List<org.apache.hadoop.hbase.ServerName> excludeNodes, org.apache.hadoop.hbase.ServerName sn)
-