diff --git a/docs/src/main/sphinx/object-storage/metastores.md b/docs/src/main/sphinx/object-storage/metastores.md index 369be07fffced..331a85e808226 100644 --- a/docs/src/main/sphinx/object-storage/metastores.md +++ b/docs/src/main/sphinx/object-storage/metastores.md @@ -71,7 +71,7 @@ are also available. They are discussed later in this topic. - `5m` * - `hive.metastore-cache-maximum-size` - Maximum number of metastore data objects in the Hive metastore cache. - - `10000` + - `20000` * - `hive.metastore-refresh-interval` - Asynchronously refresh cached metastore data after access if it is older than this but is not yet expired, allowing subsequent accesses to see fresh diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/cache/CachingHiveMetastoreConfig.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/cache/CachingHiveMetastoreConfig.java index 6374bba584e6a..2f97cbc454edb 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/cache/CachingHiveMetastoreConfig.java +++ b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/cache/CachingHiveMetastoreConfig.java @@ -37,7 +37,7 @@ public class CachingHiveMetastoreConfig private Duration metastoreCacheTtl = new Duration(0, SECONDS); private Optional statsCacheTtl = Optional.empty(); private Optional metastoreRefreshInterval = Optional.empty(); - private long metastoreCacheMaximumSize = 10000; + private long metastoreCacheMaximumSize = 20000; private int maxMetastoreRefreshThreads = 10; private boolean partitionCacheEnabled = true; private boolean cacheMissing = true; diff --git a/plugin/trino-hive/src/test/java/io/trino/plugin/hive/metastore/cache/TestCachingHiveMetastoreConfig.java b/plugin/trino-hive/src/test/java/io/trino/plugin/hive/metastore/cache/TestCachingHiveMetastoreConfig.java index 02316306266d7..38d59830b42bb 100644 --- a/plugin/trino-hive/src/test/java/io/trino/plugin/hive/metastore/cache/TestCachingHiveMetastoreConfig.java +++ b/plugin/trino-hive/src/test/java/io/trino/plugin/hive/metastore/cache/TestCachingHiveMetastoreConfig.java @@ -39,7 +39,7 @@ public void testDefaults() .setMetastoreCacheTtl(new Duration(0, SECONDS)) .setStatsCacheTtl(new Duration(5, MINUTES)) .setMetastoreRefreshInterval(null) - .setMetastoreCacheMaximumSize(10000) + .setMetastoreCacheMaximumSize(20000) .setMaxMetastoreRefreshThreads(10) .setPartitionCacheEnabled(true) .setCacheMissing(true)