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

Dmytro Sen commented on AMBARI-14694:
-------------------------------------

Tests failure is not related to this jira

> 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)

Reply via email to