Uh oh!
There was an error while loading. Please reload this page.
HDDS-10206. Expose jmx metrics for snapshot cache size on the ozone manager. - #6138
Conversation
ceekay47
commented
Jan 31, 2024
@swamirishi Can you please review when you have time? |
ceekay47
commented
Feb 22, 2024
@aswinshakil Can you please take a look when you can? |
adoroszlai
commented
Feb 25, 2024
@ceekay47 please take a look at compile error: https://github.com/ceekay47/ozone/actions/runs/7883419762/job/21510351002#step:6:2382 |
ceekay47
commented
Feb 28, 2024
@adoroszlai Thanks for taking a look. Fixed and updated the PR. |
Uh oh!
There was an error while loading. Please reload this page.
hemantk-12
left a comment
There was a problem hiding this comment.
Thanks @ceekay47 for the patch.
I don't think it is a good idea to update metrics like this. It would be better if you increment and decrement the snapshotCacheSize metric whenever you open a new rocksDB instance and close it respectively inside the SnapshotCache.
Uh oh!
There was an error while loading. Please reload this page.
swamirishi
left a comment
There was a problem hiding this comment.
@ceekay47 Thanks for the patch I had some nitpicky comments otherwise the patch looks good.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ceekay47
commented
Apr 2, 2024
@hemantk-12@swamirishi Thanks for the review. I have addressed the review comments. Can you take a look? Thanks. |
hemantk-12
left a comment
There was a problem hiding this comment.
Thanks @ceekay47 for addressing the comments.
Left a comment about updating tests to validate metrics and a minor comment about removing the white line. Otherwise, change looks good to me.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ceekay47
commented
Apr 4, 2024
@hemantk-12 Thanks again for the review. I've added validation for the metric in tests. |
hemantk-12
left a comment
There was a problem hiding this comment.
Thanks @ceekay47 for working on this.
LGTM.
swamirishi
left a comment
There was a problem hiding this comment.
Thanks for the patch @ceekay47 LGTM
…anager. (apache#6138) (cherry picked from commit 301664e)
…anager. (apache#6138) (cherry picked from commit 301664e)
…anager. (apache#6138) (cherry picked from commit 301664e)
…anager. (apache#6138) (cherry picked from commit 301664e)
…anager. (apache#6138) (cherry picked from commit 301664e)
…anager. (apache#6138) (cherry picked from commit 301664e)
… the ozone manager. (apache#6138) Change-Id: I511df57abdc7c2e1392d849530116786ea3dc647
What changes were proposed in this pull request?
HDDS-10206. Expose jmx metrics for snapshot cache size on the ozone manager.
This PR introduces changes to expose snapshot cache size (
dbMap.size()in https://github.com/apache/ozone/blob/master/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotCache.java) to the Ozone Manager metrics.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10206
How was this patch tested?
Workflow run on the fork git repo.