You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ra...@apache.org on 2022/10/06 01:21:44 UTC

[hbase] branch branch-2 updated: 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 is an automated email from the ASF dual-hosted git repository.

rajeshbabu pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new 5395f921787 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
5395f921787 is described below

commit 5395f921787f86eb4638bb794ddd6fc5748100ff
Author: Rajeshbabu Chintaguntla <ra...@apache.org>
AuthorDate: Thu Oct 6 06:51:33 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 4a53a0212ae..49014a1d94b 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
@@ -744,7 +744,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()));