Describe the bug
When object storage is configured to use AWS S3, and a prefix is configured, if retention is configured it does not appear to delete old data beyond the retention period.
To Reproduce
Steps to reproduce the behavior:
- Start Tempo v2.4.0
- Wait for
blocklist_poll time to elapse.
- Wait for
compacted_block_retention time to elapse.
- Wait a lot longer.
- Witness no files deleted from S3.
Expected behavior
I expect data files in S3 older than the configured block_retention to be deleted from S3.
Environment:
- Infrastructure: Kubernetes
- Deployment tool: helm
Additional Context
I see 0 blocks listed in the compactor logs:
level=debug ts=2024-03-05T17:03:31.370043415Z caller=s3.go:273 msg="listing blocks" keypath=foo/tempo/ found=1 IsTruncated=false NextMarker=
level=debug ts=2024-03-05T17:03:32.513352722Z caller=s3.go:389 msg="listing blocks complete" blockIDs=0 compactedBlockIDs=0
Notable configuration:
compactor:
compaction:
block_retention: 48h
compacted_block_retention: 10m
storage:
trace:
backend: s3
blocklist_poll: 1m
s3:
bucket: foobar-bucket
prefix: foo/tempo
When I have no prefix configured, I see a lot of compaction/retention activity in the (debug) log. With a prefix configured, I see virtually nothing.
Describe the bug
When object storage is configured to use AWS S3, and a prefix is configured, if retention is configured it does not appear to delete old data beyond the retention period.
To Reproduce
Steps to reproduce the behavior:
blocklist_polltime to elapse.compacted_block_retentiontime to elapse.Expected behavior
I expect data files in S3 older than the configured
block_retentionto be deleted from S3.Environment:
Additional Context
I see 0 blocks listed in the compactor logs:
Notable configuration:
When I have no prefix configured, I see a lot of compaction/retention activity in the (debug) log. With a prefix configured, I see virtually nothing.