Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 9d1e87bbc -> 94a3f90f4


AMBARI-18331 - JMX metric retrieval method may unnecessarily refresh metrics at 
a high rate (part2) (jonathanhurley)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/94a3f90f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/94a3f90f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/94a3f90f

Branch: refs/heads/branch-2.5
Commit: 94a3f90f4097ff3934591e22c5d63556b04fbf0f
Parents: 4ea3229
Author: Jonathan Hurley <jhur...@hortonworks.com>
Authored: Fri Sep 9 17:17:15 2016 -0400
Committer: Jonathan Hurley <jhur...@hortonworks.com>
Committed: Fri Sep 9 17:20:40 2016 -0400

----------------------------------------------------------------------
 .../ambari/server/state/services/MetricsRetrievalService.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/94a3f90f/ambari-server/src/main/java/org/apache/ambari/server/state/services/MetricsRetrievalService.java
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/services/MetricsRetrievalService.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/services/MetricsRetrievalService.java
index 629f6ab..79e0e25 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/services/MetricsRetrievalService.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/services/MetricsRetrievalService.java
@@ -198,7 +198,7 @@ public class MetricsRetrievalService extends 
AbstractService {
         TimeUnit.MINUTES).build();
 
     // enable the TTL cache if configured; otherwise leave it as null
-    int ttlSeconds = m_configuration.getMetricCacheTTLSeconds();
+    int ttlSeconds = m_configuration.getMetricsServiceRequestTTL();
     boolean ttlCacheEnabled = 
m_configuration.isMetricsServiceRequestTTLCacheEnabled();
     if (ttlCacheEnabled) {
       m_ttlUrlCache = CacheBuilder.newBuilder().expireAfterWrite(ttlSeconds,

Reply via email to