HBASE-4310 Fix check for lower and upper bounds
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1164549 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dc2bd8dce6
commit
58e75dd65c
|
@ -87,7 +87,9 @@ public class TestSlabCache {
|
||||||
public void testStatsArithmetic(){
|
public void testStatsArithmetic(){
|
||||||
SlabStats test = cache.requestStats;
|
SlabStats test = cache.requestStats;
|
||||||
for(int i = 0; i < test.NUMDIVISIONS; i++){
|
for(int i = 0; i < test.NUMDIVISIONS; i++){
|
||||||
assert(test.getUpperBound(i) < test.getLowerBound(i + 1));
|
assertTrue("Upper for index " + i + " is " + test.getUpperBound(i) +
|
||||||
|
" lower " + test.getLowerBound(i + 1),
|
||||||
|
test.getUpperBound(i) <= test.getLowerBound(i + 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue