Skip to content

Conversation

@anna-tran
Copy link
Contributor

What this PR does:
A bug was introduced in this PR #7130 where the partition group file is no longer deleted even if it was marked as deletable because the cleaner would only delete partition groups that are both marked as CanDelete and IsCompleted. This causes invalid partition groups (e.g. a block from the group was deleted) to never be cleaned up.

This PR adds back the deletion logic such that if no blocks were deleted for the deletable partition group, it can still be deleted. It also preserves the logic that partition groups are deleted on the second cleaner cycle if the parent blocks needed to be deleted first.

No tests were updated but this was tested in a distributed environment where that left partition groups dangling, and afterwards were cleaned up with the patched image including this change.

Which issue(s) this PR fixes:
Fixes #7129

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@alexqyle
Copy link
Contributor

LGTM

Signed-off-by: Anna Tran <trananna@amazon.com>
@anna-tran anna-tran force-pushed the fix-missing-deletion branch from 978c51a to 1268b1a Compare December 12, 2025 01:04
Signed-off-by: Anna Tran <trananna@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double compaction after completing partitioning compaction job

4 participants