Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-14694

Unnecessary multiple TreeMap creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.2.1
    • 2.2.2
    • None
    • None

    Description

      In TimelineReadHelper

          TreeMap<Long, Double> sortedByTimeMetrics = new TreeMap(
            PhoenixHBaseAccessor.readMetricFromJSON(rs.getString("METRICS")));
      

      but readMetricFromJSON returns the TreeMap

      it can lead to memory wasting

      Attachments

        1. AMBARI-14694.patch
          2 kB
          Dmytro Sen

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: