This is an automated email from the ASF dual-hosted git repository.
aokolnychyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new b68eb3f Remove table cache expiration (#1203)
b68eb3f is described below
commit b68eb3fe574f65d37b2d050737ed9b57925ac908
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;