Skip to content

Conversation

@anna-tran
Copy link
Contributor

What this PR does:
This PR adds a compaction plan consistency check in the visit marker heartbeat and cancels the compaction context if the plan is deemed inconsistent. For partition compaction jobs, inconsistency means that the partition group info creation time recorded by the visit marker is different than the creation time for the partition group info file stored in remote storage. This could happen if the partition plan was recreated by a different compactor while the current compaction is still running.

Canceling the context will abort all compactions for the user but that's ok because Cortex only does 1 user compaction job at a time so it would only affect the current job.

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

Checklist

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

Signed-off-by: Anna Tran <trananna@amazon.com>
@anna-tran anna-tran force-pushed the visit-marker-cortex-cancel branch from 753d86f to c5497a6 Compare January 7, 2026 19:48
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validation to abort duplicate compaction using visit marker

1 participant