jhungund commented on code in PR #6182:
URL: https://github.com/apache/hbase/pull/6182#discussion_r1735987847
##########
hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/bucket/TestBucketCache.java:
##########
@@ -226,10 +226,19 @@ public void testHeapSizeChanges() throws Exception {
public static void waitUntilFlushedToBucket(BucketCache cache, BlockCacheKey
cacheKey)
throws InterruptedException {
- while (!cache.backingMap.containsKey(cacheKey) ||
cache.ramCache.containsKey(cacheKey)) {
- Thread.sleep(100);
+ long timeout = 120000;
+ try {
+ while (!cache.backingMap.containsKey(cacheKey) ||
cache.ramCache.containsKey(cacheKey)) {
+ Thread.sleep(100);
+ if (timeout <= 0) {
+ break;
+ }
+ timeout -= 100;
+ }
+ } finally {
+ Thread.sleep(1000);
Review Comment:
Hi @wchevreuil , the config object is not available with us here. Probably I
can leave out the change this. I had tried to change it to avoid infinite wait.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]