HBASE-27365 Minimise block addition failures due to no space in bucket cache writers queue by introducing wait time - addendum fixing the test case failure
This commit is contained in:
parent
5fa5b0364f
commit
1c90547e8a
|
@ -693,7 +693,7 @@ public class TestBucketCache {
|
||||||
while (bucketCache.backingMap.size() != 10) {
|
while (bucketCache.backingMap.size() != 10) {
|
||||||
if (timeout <= 0) break;
|
if (timeout <= 0) break;
|
||||||
Threads.sleep(100);
|
Threads.sleep(100);
|
||||||
timeout = -100;
|
timeout -= 100;
|
||||||
}
|
}
|
||||||
for (HFileBlockPair hfileBlockPair : hfileBlockPairs) {
|
for (HFileBlockPair hfileBlockPair : hfileBlockPairs) {
|
||||||
assertTrue(bucketCache.backingMap.containsKey(hfileBlockPair.getBlockName()));
|
assertTrue(bucketCache.backingMap.containsKey(hfileBlockPair.getBlockName()));
|
||||||
|
|
Loading…
Reference in New Issue