Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup failed segment before flushing. #2606

Merged
merged 6 commits into from
Oct 30, 2023
Merged

Conversation

cyriltovena
Copy link
Contributor

We've found instances where if an error happens during cut of rowgroups, there will be a file left over that will make next attempts fail.

This PR adds a test for this and fixes this by removing the segment if it exist, it will also log an error.

@cyriltovena cyriltovena requested a review from a team as a code owner October 30, 2023 12:22
Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/phlaredb/profile_store.go Outdated Show resolved Hide resolved
Co-authored-by: Christian Simon <simon@swine.de>
@cyriltovena cyriltovena enabled auto-merge (squash) October 30, 2023 15:09
@cyriltovena cyriltovena merged commit e572d26 into main Oct 30, 2023
16 checks passed
@cyriltovena cyriltovena deleted the feat/cleanup-failed-segment branch October 30, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants