-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
thanos compactor fails with populate block: chunk iter: cannot populate chunk 8: segment index 0 out of range
#5978
Comments
Do you have a retention policy configured in the compactor or in the bucket itself? As a workaround, you might want to add a no-compact mark to the blocks for which compaction fails so that the compactor can get unstuck. |
Hi @fpetkovski Thanks for replying I configured the retention on the compactor, not the bucket. I suspect the issue could be due to partial upload or a corrupted block, but I'm not sure how to verify. I do I mark the block as do not compact? Another thing is, the error mentions a few blocks I think, so it's hard to tell which one is an actual issue. |
Could the retention kick in while blocks are getting uploaded?
You can use the |
@fpetkovski upon browsing minio looking for the chunks mentioned in the error, I found that there was a chunk |
We have the same issue in one bucket, but there are a lot of chunks like this, so deleting them one by one did not help. |
Have you tried https://thanos.io/tip/components/tools.md/#bucket-verify ? Looks like it might be the command you need to determine broken chunks. |
Thanks for the tip.
What's weird is chunkMaxSize -9223372036854775808 and ChunkMinSize 9223372036854775807 (both being very round numbers in hex/bin). |
Yes, I've had the same thing! Debugged half-day via |
This happens for us every few weeks, either due to some underlying network issues or other problems, not sure yet. But fixing this is quite painful; usually it's
I had no luck with If anyone else needs to fix it, here's a small script using
|
Is there any way to download and check why bucket is "segment index out of range"? Mine looks like
Can not see anything wrong thereby naked eye |
Thanos, Prometheus and Golang version used: thanos:0.29.0
Object Storage Provider: s3/minio
What happened:
Similarly to issue #1300, I've had too little storage assigned to the compactor so it built a big backlog and only started processing it after expansion of the volume yesterday. However, overnight, it halted due to the error below and restarting the compactor reproduces the same exact error message with the same blocks.
What you expected to happen:
Compact or skip and continue with the rest of the backlog. There are still over 300 compactions in the todo, and about half has been done
How to reproduce it (as minimally and precisely as possible):
Not sure
Full logs to relevant components:
The text was updated successfully, but these errors were encountered: