From c4b231570699954eb8bcaf1f5030cfa7939303dc Mon Sep 17 00:00:00 2001 From: Ben Lau Date: Thu, 8 Nov 2018 13:20:19 -0800 Subject: [PATCH] Amend HBASE-21439 RegionLoads aren't being used in RegionLoad cost functions Addendum: Update RSGroup Test too Signed-off-by: Andrew Purtell --- ...upBasedLoadBalancerWithStochasticLoadBalancerAsInternal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/master/balancer/TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal.java b/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/master/balancer/TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal.java index a63b7c7e51d..723a295b248 100644 --- a/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/master/balancer/TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal.java +++ b/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/master/balancer/TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal.java @@ -89,7 +89,7 @@ public class TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal when(rl.getWriteRequestCount()).thenReturn(0L); when(rl.getMemStoreSize()).thenReturn(Size.ZERO); when(rl.getStoreFileSize()).thenReturn(Size.ZERO); - regionLoadMap.put(info.getEncodedNameAsBytes(), rl); + regionLoadMap.put(info.getRegionName(), rl); } when(serverMetrics.getRegionMetrics()).thenReturn(regionLoadMap); return serverMetrics;