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

Time based metrics will be reset after any get request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.13
    • None
    • metrics
    • None

    Description

      Jmx metrics can be query by http request.

      But metrics will be reset after any get request.

      The root cause may be the implement of Histogram's method "snapshot"

      @Override
      public Snapshot snapshot() {
        return histogram.snapshotAndReset();
      } 

      It will call snapshot and reset at the same time.

      I think it should not be reset cause we may need history metrics.

      Attachments

        1. screenshot-1.png
          58 kB
          fanartoria

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fanyunbojerry fanartoria
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: