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:
Rajeshbabu Chintaguntla 2022-10-06 06:54:12 +05:30
parent 5fa5b0364f
commit 1c90547e8a
1 changed files with 1 additions and 1 deletions

View File

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