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

RestMetricsPropertyProvider support nested JSON metrics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.4.2
    • None
    • metrics
    • None

    Description

      Attempting to use the RestMetricsPropertyProvider with nested metrics results in a ClassCastException.

      Caused by: java.lang.ClassCastException: com.google.gson.internal.StringMap cannot be cast to com.google.gson.JsonElement
       	at org.apache.ambari.server.controller.metrics.RestMetricsPropertyProvider.extractValuesFromJSON(RestMetricsPropertyProvider.java:472)
      

      Based on reading the code, this should be supported by using the # path splitter.

      Attachments

        1. AMBARI-20197.patch
          9 kB
          Kevin Risden
        2. AMBARI-20197.patch
          9 kB
          Kevin Risden
        3. AMBARI-20197.patch.2
          9 kB
          Kevin Risden

        Activity

          People

            Unassigned Unassigned
            krisden Kevin Risden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: