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 HBaseClassTestRule
private static final org.slf4j.Logger
private static final org.apache.hadoop.hbase.TableName
private static final int
private static final int
private 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.TableName
private static final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isSystemTableIsolated
(org.apache.hadoop.hbase.master.balancer.BalancerClusterState cluster) static void
setup()
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)
-