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

@anna-tran anna-tran force-pushed the fix-missing-deletion branch from 978c51a to 1268b1a Compare December 12, 2025 01:04
* [BUGFIX] Ruler: Add XFunctions validation support. #7111
* [BUGFIX] Querier: propagate Prometheus info annotations in protobuf responses. #7132
* [BUGFIX] Scheduler: Fix memory leak by properly cleaning up query fragment registry. #7148
* [BUGFIX] Compactor: Add back deletion of partition group info file even if not complete #7129
Copy link
Member

@SungJin1212 SungJin1212 Dec 12, 2025

Choose a reason for hiding this comment

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

Can you fix a PR number?

Suggested change
* [BUGFIX] Compactor: Add back deletion of partition group info file even if not complete #7129
* [BUGFIX] Compactor: Add back deletion of partition group info file even if not complete #7127

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