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

control-plane: fix deletion of old drafts #1198

Merged
merged 2 commits into from
Sep 27, 2023
Merged

Conversation

psFried
Copy link
Member

@psFried psFried commented Sep 25, 2023

This commit fixes the migration for deleting old drafts, so that it can be applied. It was broken, and was thankfully never applied in production.


This change is Reviewable

This commit fixes the migration for deleting old drafts, so that it can be
applied.  It was broken, and was thankfully never applied in production.
@psFried psFried force-pushed the phil/delete-drafts-fix branch 2 times, most recently from f25d6c8 to e5e79c1 Compare September 26, 2023 02:32
@psFried psFried force-pushed the phil/delete-drafts-fix branch from e5e79c1 to bb8c4c3 Compare September 26, 2023 22:25
Upgrades the `delete_old_drafts` function to `delete_old_rows`, because
it's now our one-stop-shop for daily cleanup. This adds deletion of old
`internal.log_lines` and `catalog_stats_hourly`, which would otherwise
accumulate indefinitely.

This also reduces the retention window of drafts to 10 days, since that
is what's been used when cleaning them up manually.
@psFried psFried force-pushed the phil/delete-drafts-fix branch from bb8c4c3 to dd0b0b0 Compare September 26, 2023 22:32
Copy link
Member

@jgraettinger jgraettinger left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@psFried psFried merged commit fbc0c25 into master Sep 27, 2023
3 checks passed
@psFried psFried deleted the phil/delete-drafts-fix branch September 27, 2023 12:52
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