ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14694) Unnecessary multiple TreeMap creation
Date Wed, 27 Jan 2016 16:06:39 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-14694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15119668#comment-15119668
] 

Hudson commented on AMBARI-14694:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.2 #254 (See [https://builds.apache.org/job/Ambari-branch-2.2/254/])
AMBARI-14694 Unnecessary multiple TreeMap creation (dsen) (dsen: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=b6d2996515283cf9709fb681fccae0a2ac95515e])
* ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/PhoenixHBaseAccessor.java
* ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/TimelineMetricReadHelper.java


> Unnecessary multiple TreeMap creation
> -------------------------------------
>
>                 Key: AMBARI-14694
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14694
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>            Priority: Critical
>             Fix For: 2.2.2
>
>         Attachments: AMBARI-14694.patch
>
>
> In TimelineReadHelper
> {code}
>     TreeMap<Long, Double> sortedByTimeMetrics = new TreeMap(
>       PhoenixHBaseAccessor.readMetricFromJSON(rs.getString("METRICS")));
> {code}
> but readMetricFromJSON returns the TreeMap
> it can lead to memory wasting



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message