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
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private MiniHBaseCluster
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.master.HMaster
private static final int
private static final int
private static final HBaseTestingUtility
Fields inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, dummyMetricsStochasticBalancer, largeCluster, loadBalancer, regionId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkFavoredNodeAssignments
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.favored.FavoredNodesManager fnm, org.apache.hadoop.hbase.master.assignment.RegionStates regionStates) private void
compactTable
(org.apache.hadoop.hbase.TableName tableName) static void
void
void
private void
stopServersAndWaitUntilProcessed
(List<org.apache.hadoop.hbase.ServerName> currentFN) void
void
void
void
void
void
void
void
void
Methods 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
-