Repository: ambari Updated Branches: refs/heads/branch-2.1 2333109ef -> d3bc4ff06
AMBARI-13517. Ambari Server JVM crashed after several clicks in Web UI to navigate graph timerange. ClassCastException fix. (swagle) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d3bc4ff0 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d3bc4ff0 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d3bc4ff0 Branch: refs/heads/branch-2.1 Commit: d3bc4ff067d09856bb2b068f24a23f7ca6f5e467 Parents: 2333109 Author: Siddharth Wagle <swa...@hortonworks.com> Authored: Thu Oct 22 18:31:54 2015 -0700 Committer: Siddharth Wagle <swa...@hortonworks.com> Committed: Thu Oct 22 18:31:54 2015 -0700 ---------------------------------------------------------------------- .../metrics/timeline/PhoenixHBaseAccessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/d3bc4ff0/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/PhoenixHBaseAccessor.java ---------------------------------------------------------------------- diff --git a/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/PhoenixHBaseAccessor.java b/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/PhoenixHBaseAccessor.java index 1ed2a72..06ae292 100644 --- a/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/PhoenixHBaseAccessor.java +++ b/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/PhoenixHBaseAccessor.java @@ -109,7 +109,7 @@ public class PhoenixHBaseAccessor { private static final TimelineMetricReadHelper TIMELINE_METRIC_READ_HELPER = new TimelineMetricReadHelper(); private static ObjectMapper mapper = new ObjectMapper(); - private static TypeReference<Map<Long, Double>> metricValuesTypeRef = new TypeReference<Map<Long, Double>>() {}; + private static TypeReference<TreeMap<Long, Double>> metricValuesTypeRef = new TypeReference<TreeMap<Long, Double>>() {}; private final Configuration hbaseConf; private final Configuration metricsConf;