sunhelly commented on a change in pull request #4253:
URL: https://github.com/apache/hbase/pull/4253#discussion_r834993243
##########
File path:
hbase-balancer/src/test/java/org/apache/hadoop/hbase/master/balancer/TestStochasticLoadBalancer.java
##########
@@ -519,6 +517,31 @@ public void testRegionLoadCost() {
assertEquals(2.5, result, 0.01);
}
+ @Test
+ public void testRegionLoadCostWhenDecrease() {
Review comment:
Yeah, good idea, @bbeaudreault. It's reasonable to test the [1, 2, 1,
4], since it's rare to see 0 in the real scenarios, and I used 0 to describe
the issue more clearly. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]