Amend HBASE-21439 RegionLoads aren't being used in RegionLoad cost functions

Addendum: Update RSGroup Test too

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Ben Lau 2018-11-08 13:20:19 -08:00 committed by Andrew Purtell
parent d9f32137b6
commit c4b2315706
No known key found for this signature in database
GPG Key ID: 8597754DD5365CCD
1 changed files with 1 additions and 1 deletions

View File

@ -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;