Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus crashes on `panic: runtime error: integer divide by zero` #2273
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@ichekrygin is this a reproducible behavior or did it only happen once? |
This comment has been minimized.
This comment has been minimized.
|
Happened just once (so far) |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the quick info @ichekrygin. I'm not an expert on the storage so it might take a few days until we get the fix. /cc @fabxc (we were thinking of cutting a new release, so we should probably wait for this one before we do that) |
This comment has been minimized.
This comment has been minimized.
|
is this the place where it is coming from: https://github.com/prometheus/prometheus/blob/v1.4.1/storage/local/chunk/doubledelta.go#L347 ? |
This comment has been minimized.
This comment has been minimized.
|
Yep, that's what I linked to above, I'm just unsure which value to use in case of 0, so waiting for @beorn7 for advice as he's most familiar with the storage :) |
beorn7
self-assigned this
Dec 13, 2016
beorn7
added
component/remote storage
kind/bug
priority/P0
labels
Dec 13, 2016
This comment has been minimized.
This comment has been minimized.
|
Back from vacation business. Will look into this ASAP. |
This comment has been minimized.
This comment has been minimized.
|
This results from data corruption. I'll add some sanity checks to catch this without crashing. |
beorn7
referenced this issue
Dec 13, 2016
Merged
storage: Catch data corruption that leads to division by zero #2276
beorn7
closed this
in
#2276
Dec 13, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
ichekrygin commentedDec 12, 2016
•
edited
What did you do?
Run Prometheus
What did you expect to see?
Prometheus up and running
What did you see instead? Under which circumstances?
Prometheus crashed on
Environment
N/A
N/A