Skip to content

Gracefully skip compaction during shipping - #7842

Merged
yeya24 merged 1 commit into
cortexproject:masterfrom
kylestang:kyle/head-compaction-ship
Sep 17, 2026
Merged

yeya24 merged 1 commit into
cortexproject:masterfrom
kylestang:kyle/head-compaction-ship

Conversation

@kylestang

Copy link
Copy Markdown
Contributor

What this PR does:

This commit makes ingesters prevented from performing head compaction due to block shipping skip compaction rather than treating it as a failure.

The shipping/compaction race is intentional functionality and not an error. With the old functionality, we would get alarms when these two events overlapped, even though there were no issues and compaction succeeded on the next attempt.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

This commit makes ingesters prevented from performing head compaction
due to block shipping skip compaction rather than treating it as a
failure.

The shipping/compaction race is intentional functionality and not an
error. With the old functionality, we would get alarms when these two
events overlapped, even though there were no issues and compaction
succeeded on the next attempt.

Signed-off-by: Kyle Stang <kylestng@amazon.com>
@kylestang
kylestang force-pushed the kyle/head-compaction-ship branch from 38de1b5 to a866acc Compare September 16, 2026 22:42
@kylestang
kylestang marked this pull request as ready for review September 16, 2026 23:07
@kylestang
kylestang requested a review from a team as a code owner September 16, 2026 23:07
@yeya24

yeya24 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Test failure doesn't seem related.

@yeya24
yeya24 merged commit 377177d into cortexproject:master Sep 17, 2026
39 of 40 checks passed
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.

3 participants