Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-9200. [Snapshot] Added logs and metrics for snapshot purge and set property APIs #6453

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

hemantk-12
Copy link
Contributor

What changes were proposed in this pull request?

For snapshot purge and set snapshot property, there is no OM log or audit log. Without logs, it is hard to debug an issue like Snapshot chain corruption (e.g. HDDS-10524).

This change is to add logs so that, there is a way to know which snapshot is updated by which request. It also adds metrics for SnapshotPurgeRequest and SetSnapshotPropertyRequest APIs for monitoring purposes.

What is the link to the Apache JIRA

HDDS-9200

How was this patch tested?

Updated existing unit tests to validate that metrics are populated correctly.

@hemantk-12 hemantk-12 added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Mar 28, 2024
@hemantk-12 hemantk-12 requested review from swamirishi and smengcl April 2, 2024 20:39
Copy link
Contributor

@swamirishi swamirishi left a comment

Choose a reason for hiding this comment

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

Thanks for the patch @hemantk-12 Overall LGTM apart from one of the logging done.

Copy link
Contributor

@smengcl smengcl left a comment

Choose a reason for hiding this comment

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

Thanks @hemantk-12 . lgtm

@hemantk-12 hemantk-12 merged commit 3467db1 into apache:master Apr 3, 2024
39 checks passed
@hemantk-12
Copy link
Contributor Author

Thanks @smengcl and @swamirishi for the review.

xichen01 pushed a commit to xichen01/ozone that referenced this pull request Apr 17, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Apr 18, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Apr 23, 2024
jojochuang pushed a commit to jojochuang/ozone that referenced this pull request May 29, 2024
swamirishi pushed a commit to swamirishi/ozone that referenced this pull request Jun 10, 2024
… purge and set property APIs (apache#6453)

Change-Id: Idbb2fb15100a46d0b117e84f7443d94cb58ace94
@hemantk-12 hemantk-12 deleted the HDDS-9200 branch October 28, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snapshot https://issues.apache.org/jira/browse/HDDS-6517
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants