Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20571

JMXJsonServlet generates invalid JSON if it has NaN in metrics

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      /jmx servlet responses invalid JSON, if some metrics are NaN:

          "l1CacheHitCount" : 0,
          "l1CacheMissCount" : 0,
          "l1CacheHitRatio" : NaN,
          "l1CacheMissRatio" : NaN,
          "l2CacheHitCount" : 0,
          "l2CacheMissCount" : 0,
          "l2CacheHitRatio" : 0.0,
          "l2CacheMissRatio" : 0.0,
      

      NaN is an invalid character sequence in JSON. We should not response NaN in metrics.

      Attachments

        1. HBASE-20571.branch-2.0.001.patch
          2 kB
          Balazs Meszaros
        2. HBASE-20571.branch-2.0.002.patch
          2 kB
          Balazs Meszaros
        3. HBASE-20571.branch-2.0.002.patch
          2 kB
          Michael Stack
        4. HBASE-20571.branch-2.0.003.patch
          3 kB
          Balazs Meszaros
        5. HBASE-20571.branch-1.003.patch
          4 kB
          Balazs Meszaros
        6. HBASE-20571.branch-1.004.patch
          4 kB
          Balazs Meszaros

        Issue Links

          Activity

            People

              meszibalu Balazs Meszaros
              meszibalu Balazs Meszaros
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: