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

[bucket][tools] Add cleanup subcommand to clean blocks marked for deletion #3092

Merged
merged 3 commits into from
Aug 31, 2020
Merged

[bucket][tools] Add cleanup subcommand to clean blocks marked for deletion #3092

merged 3 commits into from
Aug 31, 2020

Conversation

amrmahdi
Copy link
Contributor

@amrmahdi amrmahdi commented Aug 28, 2020

This change is mostly re-using the logic in the compactor to clean up blocks marked for deletion to be in a standalone subcommand that can be used independently of the compactor.

  • I added CHANGELOG entry for this change.

Changes

New cleanup subcommand under tools/bucket command.

Verification

Verified on actual bucket where there are blobs marked for deletion

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

This is solid code Sir! LGTM ❤️

Thanks!

cmd/thanos/tools_bucket.go Show resolved Hide resolved
cmd/thanos/tools_bucket.go Show resolved Hide resolved
@bwplotka
Copy link
Member

Can you fix DCO? Then we will merge (:

You need to sign your commit:

https://github.com/thanos-io/thanos/pull/3092/checks?check_run_id=1044012475

amrmahdi and others added 3 commits August 30, 2020 12:14
…etion

Signed-off-by: Amr Mahdi <amramahdi@gmail.com>
Signed-off-by: Amr Mahdi <amramahdi@gmail.com>
Signed-off-by: Amr Mahdi <amramahdi@gmail.com>
@amrmahdi amrmahdi requested a review from bwplotka August 31, 2020 05:38
@bwplotka bwplotka merged commit 3aac961 into thanos-io:master Aug 31, 2020
@bwplotka
Copy link
Member

Thanks!

@amrmahdi amrmahdi deleted the amrh/bucket-cleanup branch August 31, 2020 19:02
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