Class TestUnattainableBalancerCostGoal
java.lang.Object
org.apache.hadoop.hbase.master.balancer.TestUnattainableBalancerCostGoal
If your minCostNeedsBalance is set too low, then the balancer should still eventually stop making
moves as further cost improvements become impossible, and balancer plan calculation becomes
wasteful. This test ensures that the balancer will not get stuck in a loop of continuously moving
regions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerprivate static final org.apache.hadoop.hbase.TableNameprivate static final intprivate static final intprivate static final org.apache.hadoop.hbase.ServerName[]private static final Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> private static final org.apache.hadoop.hbase.TableNameprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisSystemTableIsolated(org.apache.hadoop.hbase.master.balancer.BalancerClusterState cluster) static voidsetup()void
-
Field Details
-
CLASS_RULE
-
LOG
-
SYSTEM_TABLE_NAME
-
NON_SYSTEM_TABLE_NAME
-
NUM_SERVERS
- See Also:
-
NUM_REGIONS
- See Also:
-
UNACHIEVABLE_COST_GOAL
- See Also:
-
servers
-
serverToRegions
private static final Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> serverToRegions
-
-
Constructor Details
-
TestUnattainableBalancerCostGoal
public TestUnattainableBalancerCostGoal()
-
-
Method Details
-
setup
-
testSystemTableIsolation
-
isSystemTableIsolated
private boolean isSystemTableIsolated(org.apache.hadoop.hbase.master.balancer.BalancerClusterState cluster)
-