ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Sen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-14694) Unnecessary multiple TreeMap creation
Date Fri, 15 Jan 2016 17:42:40 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-14694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmytro Sen updated AMBARI-14694:
--------------------------------
    Description: 
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

  was:
In TimelineReadHelper
{code}
    TreeMap<Long, Double> sortedByTimeMetrics = new TreeMap(
      PhoenixHBaseAccessor.readMetricFromJSON(rs.getString("METRICS")));
{code}
but readMetricFromJSON returns the TreeMap


> 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.4.0
>
>
> 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