Skip to content

HDDS-15314. Disable defrag DB metrics due to crash during snapshot defrag#10301

Open
smengcl wants to merge 3 commits into
apache:masterfrom
smengcl:HDDS-15314-disable-db-metrics-for-defrag
Open

HDDS-15314. Disable defrag DB metrics due to crash during snapshot defrag#10301
smengcl wants to merge 3 commits into
apache:masterfrom
smengcl:HDDS-15314-disable-db-metrics-for-defrag

Conversation

@smengcl
Copy link
Copy Markdown
Contributor

@smengcl smengcl commented May 18, 2026

What changes were proposed in this pull request?

Disable RocksDB metrics registration for defrag-created checkpoint DBs.

For stack trace, see JIRA description.

DB metrics should not have been enabled for defrag DBs in the first place. And previously it had been disabled for snapshot DBs in HDDS-12193 (ad0debf5e1b) by default. Similar measure needs to be taken for defrag DBs as well.

What is the link to the Apache JIRA

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

How was this patch tested?

  • Added unit test to verify metrics are disabled on defrag DB, without affecting regular checkpoint DB code path.

@smengcl smengcl added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label May 18, 2026
@smengcl smengcl marked this pull request as ready for review May 19, 2026 06:22
Copilot AI review requested due to automatic review settings May 19, 2026 06:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants