Skip to content

Commit be1b2fd

Browse files
committed
cost function to return value of 0 or 1.
1 parent 4901044 commit be1b2fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase-balancer/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public void testMutuallyExclusiveTablesOnSameServer() throws Exception
438438
CostFunction costFunction = new MutuallyExclusiveTablesCostFunction(conf);
439439
costFunction.prepare(new BalancerClusterState(clusterState, null, null, null));
440440
double cost = costFunction.cost();
441-
assertEquals(1000, cost, 0.001);
441+
assertEquals(1, cost, 0.001);
442442
}
443443

444444
@Test

0 commit comments

Comments
 (0)