Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-9475 SCM Safe Mode Improvements.
  3. HDDS-10597

Use MutableGauge for threshold based SafeModeMetrics

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • SCM

    Description

      Right now, we use MutableCounterLong for threshold metrics like 
      numContainerWithOneReplicaReportedThreshold and when it is updated in setNumContainerWithOneReplicaReportedThreshold(long val) it incremented instead of setting the accurate value. This makes no sense as this field is a threshold and shouldn't be used as a counter.
      The metrics show cumulative addition of these threshold values which makes no sense 

      Attachments

        Issue Links

          Activity

            People

              sadanand_shenoy Sadanand Shenoy
              sadanand_shenoy Sadanand Shenoy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: