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:
parent
d9f32137b6
commit
c4b2315706
|
@ -89,7 +89,7 @@ public class TestRSGroupBasedLoadBalancerWithStochasticLoadBalancerAsInternal
|
||||||
when(rl.getWriteRequestCount()).thenReturn(0L);
|
when(rl.getWriteRequestCount()).thenReturn(0L);
|
||||||
when(rl.getMemStoreSize()).thenReturn(Size.ZERO);
|
when(rl.getMemStoreSize()).thenReturn(Size.ZERO);
|
||||||
when(rl.getStoreFileSize()).thenReturn(Size.ZERO);
|
when(rl.getStoreFileSize()).thenReturn(Size.ZERO);
|
||||||
regionLoadMap.put(info.getEncodedNameAsBytes(), rl);
|
regionLoadMap.put(info.getRegionName(), rl);
|
||||||
}
|
}
|
||||||
when(serverMetrics.getRegionMetrics()).thenReturn(regionLoadMap);
|
when(serverMetrics.getRegionMetrics()).thenReturn(regionLoadMap);
|
||||||
return serverMetrics;
|
return serverMetrics;
|
||||||
|
|
Loading…
Reference in New Issue