Skip to content

Comments

HDDS-10597. Use MutableGauge for threshold based SafeModeMetrics.#6446

Merged
aryangupta1998 merged 2 commits intoapache:masterfrom
sadanand48:HDDS-10597
Apr 2, 2024
Merged

HDDS-10597. Use MutableGauge for threshold based SafeModeMetrics.#6446
aryangupta1998 merged 2 commits intoapache:masterfrom
sadanand48:HDDS-10597

Conversation

@sadanand48
Copy link
Contributor

@sadanand48 sadanand48 commented Mar 27, 2024

What changes were proposed in this pull request?

Right now, we use MutableCounterLong for threshold metrics like
numContainerWithOneReplicaReportedThresholdand 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 JMX output shows cumulative addition of these threshold values which makes no sense

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10597

How was this patch tested?

Manually

@sadanand48 sadanand48 changed the title HDDS-10597. Use MutableGauge for threshold based SafeModeMetrics HDDS-10597. Use MutableGauge for threshold based SafeModeMetrics. Mar 27, 2024
Copy link
Contributor

@aryangupta1998 aryangupta1998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sadanand48 for the patch, LGTM +1.

@aryangupta1998 aryangupta1998 merged commit f94c9f9 into apache:master Apr 2, 2024
jojochuang pushed a commit to jojochuang/ozone that referenced this pull request May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants