Class TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal
java.lang.Object
org.apache.hadoop.hbase.master.balancer.BalancerTestBase
org.apache.hadoop.hbase.master.balancer.RSGroupableBalancerTestBase
org.apache.hadoop.hbase.master.balancer.TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal
public class TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal
extends RSGroupableBalancerTestBase
Test RSGroupBasedLoadBalancer with StochasticLoadBalancer as internal balancer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
BalancerTestBase.MockMapping
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.hbase.rsgroup.RSGroupBasedLoadBalancer
Fields inherited from class org.apache.hadoop.hbase.master.balancer.RSGroupableBalancerTestBase
conf, groupMap, groups, regionAssignment, regionId, servers, table0, tableDescs, tableMap, tables
Fields inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, dummyMetricsStochasticBalancer, largeCluster
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private org.apache.hadoop.hbase.ServerMetrics
mockServerMetricsWithReadRequests
(org.apache.hadoop.hbase.ServerName server, List<org.apache.hadoop.hbase.client.RegionInfo> regionsOnServer, long readRequestCount) void
Test HBASE-20791Methods inherited from class org.apache.hadoop.hbase.master.balancer.RSGroupableBalancerTestBase
assertClusterAsBalanced, assertImmediateAssignment, assertRetainedAssignment, assignedRegions, constructGroupInfo, constructTableDesc, convertToGroupBasedMap, generateServers, getMockedGroupInfoManager, getMockedMaster, getTableName, mockClusterServers, printStats, randomRegions, reconcile, updateLoad
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, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, testWithClusterWithIteration, testWithClusterWithIteration, uniformRegions, updateLoad
-
Field Details
-
CLASS_RULE
-
loadBalancer
-
-
Constructor Details
-
TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal
-
-
Method Details
-
beforeAllTests
- Throws:
Exception
-
mockServerMetricsWithReadRequests
private org.apache.hadoop.hbase.ServerMetrics mockServerMetricsWithReadRequests(org.apache.hadoop.hbase.ServerName server, List<org.apache.hadoop.hbase.client.RegionInfo> regionsOnServer, long readRequestCount) -
testBalanceCluster
Test HBASE-20791- Throws:
IOException
-