-
Notifications
You must be signed in to change notification settings - Fork 527
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
tempodb integer divide by zero error #2167
Comments
The divide by zero is here: tempo/tempodb/compaction_block_selector.go Line 182 in 62ddaac
and should only happen if compaction_window is set to 0:
We should error more gracefully and log something meaningful in this case instead of just panicing. |
In my case compactor is set to null. I guess googling and copy/paste don't always work out. But after full reset it works even with this config.
|
Honestly, I don't know if that would take Tempo defaults are be set to all 0s. |
Can I take this issue? |
@mghildiy go ahead! :) |
I see 2 divisions going on here. I need to take care of both, I guess. |
For testing, a unit test would suffice I guess. |
There are a few example set-ups in this folder https://github.com/grafana/tempo/tree/main/example |
I have PR here: But its build is going on since ages. |
I'm just letting you know about potential problem. I did some experiments and somehow I broke tempo storage connected with minio (without replication). I have no idea how to reproduce it, but from stack trace it seems like it needs to check for 0 value before dividing it somewhere. I'm obviously using docker-compose setup and after I removed volume and started everything over again the issue is gone.
The text was updated successfully, but these errors were encountered: