Github user JamesRTaylor commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/12#discussion_r17584483
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/cache/GlobalCache.java ---
    @@ -74,8 +74,8 @@ public void clearTenantCache() {
                     if(result == null) {
                         long maxSize = 
config.getLong(QueryServices.MAX_SERVER_METADATA_CACHE_SIZE_ATTRIB,
                                 
QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_SIZE);
    -                    long maxTTL = 
config.getLong(QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB,
    --- End diff --
    
    I think you'll want to get both 
MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB and 
STATS_UPDATE_FREQ_MS_ATTRIB and set the maxTTL to min between the two.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to