This is an automated email from the ASF dual-hosted git repository.

ddanielr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 7de3e0aa36 Switch from Guava to Caffeine (#4147)
7de3e0aa36 is described below

commit 7de3e0aa36d4792a259035231087bd26c0ba393b
Author: Daniel Roberts <ddani...@gmail.com>
AuthorDate: Wed Jan 10 11:07:24 2024 -0500

    Switch from Guava to Caffeine (#4147)
    
    Fixes 2.1 merge to main
---
 .../org/apache/accumulo/tserver/compactions/CompactionService.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/server/tserver/src/main/java/org/apache/accumulo/tserver/compactions/CompactionService.java
 
b/server/tserver/src/main/java/org/apache/accumulo/tserver/compactions/CompactionService.java
index 0e18f17df3..c4f37bf9c4 100644
--- 
a/server/tserver/src/main/java/org/apache/accumulo/tserver/compactions/CompactionService.java
+++ 
b/server/tserver/src/main/java/org/apache/accumulo/tserver/compactions/CompactionService.java
@@ -67,9 +67,9 @@ import 
org.apache.accumulo.tserver.metrics.CompactionExecutorsMetrics;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.base.Preconditions;
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
 import com.google.common.collect.Sets;
 
 public class CompactionService {
@@ -140,7 +140,7 @@ public class CompactionService {
       queuedForPlanning.put(kind, new 
ConcurrentHashMap<KeyExtent,Compactable>());
     }
 
-    maxScanFilesExceededErrorCache = 
CacheBuilder.newBuilder().expireAfterWrite(5, MINUTES).build();
+    maxScanFilesExceededErrorCache = Caffeine.newBuilder().expireAfterWrite(5, 
MINUTES).build();
 
     log.debug("Created new compaction service id:{} rate limit:{} planner:{} 
planner options:{}",
         myId, maxRate, plannerClass, plannerOptions);

Reply via email to