This is an automated email from the ASF dual-hosted git repository. blue pushed a commit to branch 0.9.x in repository https://gitbox.apache.org/repos/asf/iceberg.git
commit ecebbcd796046bdd5bf13114bd96bf7db398bbcd Author: Ryan Blue <[email protected]> AuthorDate: Thu Jul 16 16:43:29 2020 -0700 Remove table cache expiration (#1203) --- core/src/main/java/org/apache/iceberg/CachingCatalog.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/main/java/org/apache/iceberg/CachingCatalog.java b/core/src/main/java/org/apache/iceberg/CachingCatalog.java index ab9f90f..b3ab1fa 100644 --- a/core/src/main/java/org/apache/iceberg/CachingCatalog.java +++ b/core/src/main/java/org/apache/iceberg/CachingCatalog.java @@ -23,7 +23,6 @@ import com.github.benmanes.caffeine.cache.Cache; import com.github.benmanes.caffeine.cache.Caffeine; import java.util.List; import java.util.Map; -import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import org.apache.iceberg.catalog.Catalog; import org.apache.iceberg.catalog.Namespace; @@ -40,10 +39,7 @@ public class CachingCatalog implements Catalog { return new CachingCatalog(catalog, caseSensitive); } - private final Cache<TableIdentifier, Table> tableCache = Caffeine.newBuilder() - .softValues() - .expireAfterAccess(1, TimeUnit.MINUTES) - .build(); + private final Cache<TableIdentifier, Table> tableCache = Caffeine.newBuilder().softValues().build(); private final Catalog catalog; private final boolean caseSensitive;
