Skip to content

HDDS-16113. Add regression tests for snapshot defragmentation cleanup - #10978

Draft
smengcl wants to merge 1 commit into
apache:masterfrom
smengcl:HDDS-16113
Draft

HDDS-16113. Add regression tests for snapshot defragmentation cleanup#10978
smengcl wants to merge 1 commit into
apache:masterfrom
smengcl:HDDS-16113

Conversation

@smengcl

@smengcl smengcl commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Generated-by: Codex (GPT-5.6 Sol)

What changes were proposed in this pull request?

Add regression tests for the snapshot defragmentation cleanup and deletion-retry paths introduced by HDDS-13173.

What is the link to the Apache JIRA?

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

How was this patch tested?

  • TestSnapshotDefragService passed.

Copilot AI lite review requested due to automatic review settings August 9, 2026 03:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds regression coverage in Ozone Manager’s snapshot defragmentation test suite to ensure temporary checkpoint directories are cleaned up on failure paths, and validates old-checkpoint cleanup behavior when a snapshot is already defragmented.

Changes:

  • Add tests asserting checkpoint directory cleanup when opening a defrag checkpoint fails.
  • Add tests asserting cleanup of partial checkpoint directories when DBStore#getCheckpoint(...) returns null.
  • Update existing “already defragged” path test to expect deletion of older checkpoint versions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@smengcl smengcl added test snapshot https://issues.apache.org/jira/browse/HDDS-6517 labels Aug 9, 2026
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 test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants