Skip to content

Commit

Permalink
Remove table cache expiration (apache#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdblue authored Jul 16, 2020
1 parent 6140599 commit b68eb3f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/src/main/java/org/apache/iceberg/CachingCatalog.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
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;
Expand All @@ -40,10 +39,7 @@ public static Catalog wrap(Catalog catalog, boolean caseSensitive) {
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;

Expand Down

0 comments on commit b68eb3f

Please sign in to comment.