Class TestFavoredStochasticLoadBalancer
java.lang.Object
org.apache.hadoop.hbase.master.balancer.BalancerTestBase
org.apache.hadoop.hbase.master.balancer.TestFavoredStochasticLoadBalancer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
BalancerTestBase.MockMapping -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate MiniHBaseClusterprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.master.HMasterprivate static final intprivate static final intprivate static final HBaseTestingUtilityFields inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, dummyMetricsStochasticBalancer, largeCluster, loadBalancer, regionId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckFavoredNodeAssignments(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.favored.FavoredNodesManager fnm, org.apache.hadoop.hbase.master.assignment.RegionStates regionStates) private voidcompactTable(org.apache.hadoop.hbase.TableName tableName) static voidvoidvoidprivate voidstopServersAndWaitUntilProcessed(List<org.apache.hadoop.hbase.ServerName> currentFN) voidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, beforeAllTests, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServers, mockClusterServersUnsorted, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, testWithClusterWithIteration, testWithClusterWithIteration, uniformRegions, updateLoad
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
SLAVES
- See Also:
-
REGION_NUM
- See Also:
-
admin
-
master
-
cluster
-
-
Constructor Details
-
TestFavoredStochasticLoadBalancer
public TestFavoredStochasticLoadBalancer()
-
-
Method Details
-
setupBeforeClass
- Throws:
Exception
-
startCluster
- Throws:
Exception
-
stopCluster
- Throws:
Exception
-
testBasicBalance
- Throws:
Exception
-
testRoundRobinAssignment
- Throws:
Exception
-
testBasicRegionPlacementAndReplicaLoad
- Throws:
Exception
-
testRandomAssignmentWithNoFavNodes
- Throws:
Exception
-
testBalancerWithoutFavoredNodes
- Throws:
Exception
-
testMisplacedRegions
- Throws:
Exception
-
test2FavoredNodesDead
- Throws:
Exception
-
testAllFavoredNodesDead
- Throws:
Exception
-
testAllFavoredNodesDeadMasterRestarted
- Throws:
Exception
-
checkFavoredNodeAssignments
private void checkFavoredNodeAssignments(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.favored.FavoredNodesManager fnm, org.apache.hadoop.hbase.master.assignment.RegionStates regionStates) throws IOException - Throws:
IOException
-
stopServersAndWaitUntilProcessed
private void stopServersAndWaitUntilProcessed(List<org.apache.hadoop.hbase.ServerName> currentFN) throws Exception - Throws:
Exception
-
compactTable
- Throws:
IOException
-