This is an automated email from the ASF dual-hosted git repository.
rajeshbabu pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new 1c90547e8a5 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
1c90547e8a5 is described below
commit 1c90547e8a524d5a3800a062939cab0f8226e8be
Author: Rajeshbabu Chintaguntla <[email protected]>
AuthorDate: Thu Oct 6 06:54:12 2022 +0530
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
---
.../java/org/apache/hadoop/hbase/io/hfile/bucket/TestBucketCache.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/bucket/TestBucketCache.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/bucket/TestBucketCache.java
index 30fac090e2b..175c3cdc8a9 100644
---
a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/bucket/TestBucketCache.java
+++
b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/bucket/TestBucketCache.java
@@ -693,7 +693,7 @@ public class TestBucketCache {
while (bucketCache.backingMap.size() != 10) {
if (timeout <= 0) break;
Threads.sleep(100);
- timeout = -100;
+ timeout -= 100;
}
for (HFileBlockPair hfileBlockPair : hfileBlockPairs) {
assertTrue(bucketCache.backingMap.containsKey(hfileBlockPair.getBlockName()));