-
Notifications
You must be signed in to change notification settings - Fork 2k
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
compact:debug meta files are never deleted #3397
Comments
That's correct, what do you propose? (: This is really for debug, but was not proven to be very useful. Let's discuss and decide what to do 🤔 |
I think the deletion call can mirror the Upload call and delete the file after deleting the meta file that is part of the block directory. |
Maybe let's bring this up on the next community call? (: |
Hi @GiedriusS, I don't know if the question is directed at me or someone else, I'm fine with that :) its a small issue and in worst case the files can be cleaned up offline by a separate tool if they become an issue. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Still reproducible |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
I've observed this problem also. A fix would be appreciated. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
We don't upload them anymore hence closing. #5110 |
Thanos, Prometheus and Golang version used:
Thanos: quay.io/thanos/thanos:v0.15.0
Prometheus: quay.io/prometheus/prometheus:v2.22.0
Object Storage Provider: Dell ECS
What happened:
We have a preview thanos deployment that we use with our preview clusters, I was looking at one of the S3 buckets that the sidecars upload to and found out that the $(bucket)/debug folder has a lot of files, much more than the number of objects in the s3 bucket, the retention in the compactor for this bucket is set to 3 months for the 3 retention flags, but looking at some of the meta files they are for blocks that are more than 1 year old now, for example:
that is from
Friday, August 30, 2019
, which lead me to believe that the debug meta files might not get deleted, I looked a little bit at the code and I can see the files get created on upload:https://github.com/thanos-io/thanos/blob/master/pkg/block/block.go#L94
but only the meta file in the block directory is deleted, DebugMetas not used anywhere in the Delete function inside that package:
https://github.com/thanos-io/thanos/blob/master/pkg/block/block.go#L167
What you expected to happen:
Debug meta file is deleted when the block is outside of retention window
How to reproduce it (as minimally and precisely as possible):
Set compactor retention to a value smaller than the current value, after the block object gets deleted the debug meta file will still be there.
The text was updated successfully, but these errors were encountered: