This is an automated email from the ASF dual-hosted git repository. nic pushed a commit to branch 3.0.x in repository https://gitbox.apache.org/repos/asf/kylin.git
commit ef1e63c4cff83d4e83ddcc46a41b07bc998fc126 Author: mrzhao <[email protected]> AuthorDate: Mon Jan 20 10:40:25 2020 +0800 statement cache eviction invalidation base on time --- .../src/main/java/org/apache/kylin/rest/service/QueryService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java b/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java index 0ce8379..652cbfc 100644 --- a/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java +++ b/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java @@ -180,6 +180,7 @@ public class QueryService extends BasicService { config.setMaxTotal(kylinConfig.getQueryMaxCacheStatementNum()); config.setBlockWhenExhausted(false); config.setMinEvictableIdleTimeMillis(10 * 60 * 1000L); // cached statement will be evict if idle for 10 minutes + config.setTimeBetweenEvictionRunsMillis(60 * 1000L); GenericKeyedObjectPool<PreparedContextKey, PreparedContext> pool = new GenericKeyedObjectPool<>(factory, config); return pool;
