Skip to content

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 smengcl and swamirishi 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
@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
swamirishi pushed a commit to swamirishi/ozone that referenced this pull request Dec 3, 2025
…erty APIs (apache#6453)

Change-Id: I715238c692552e5883c3ecdfa42de1f7738e92c8
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