-
Notifications
You must be signed in to change notification settings - Fork 530
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
panic: runtime error: integer divide by zero #1670
Comments
Speculatively I changed compaction_cycle to 5m and the problem seems to have gone away |
Hi thanks for reporting this. Inspecting the source it looks like a configuration issue with compaction_window. I am able to reproduce the divide by zero error when setting Zero is not valid, it must be a positive time interval and typical values are between We can check for |
Hi, well this is interesting, If I remove compaction_window it properly defaults to 1h0m0s however if I remove both, and therefore default, compaction_window and max_block_bytes then compaction_window defaults to 0s ... looks like this is why I saw the problem in the first place. In fact everything defaults to 0 when looking on the status page:
To cause this all I had in my config file for the compactor was this, probably invalid, yaml
|
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. |
I guess this must be fixed by fix for #2167. |
Yup. thanks for pointing that out @mghildiy 👍 |
Describe the bug
panic: runtime error: integer divide by zero
goroutine 392 [running]:
github.com/grafana/tempo/tempodb.(*timeWindowBlockSelector).windowForTime(...)
/root/tempo/tempodb/compaction_block_selector.go:182
github.com/grafana/tempo/tempodb.newTimeWindowBlockSelector({0xc00000e938, 0x1, 0x1}, 0x0, 0x0, 0x0, 0x2, 0x4)
/root/tempo/tempodb/compaction_block_selector.go:58 +0x8b2
github.com/grafana/tempo/tempodb.(*readerWriter).doCompaction(0xc0001f4600)
/root/tempo/tempodb/compactor.go:92 +0x18c
github.com/grafana/tempo/tempodb.(*readerWriter).compactionLoop(0xc0001f4600)
/root/tempo/tempodb/compactor.go:74 +0x96
created by github.com/grafana/tempo/tempodb.(*readerWriter).EnableCompaction
/root/tempo/tempodb/tempodb.go:387 +0x222
To Reproduce
No Idea
Expected behavior
Well, not a divide by zero I guess.
Environment:
Additional Context
v1.5.0
The text was updated successfully, but these errors were encountered: