Closed jonnangle closed 1 year ago
Describe the bug If you set interval=0 and alignToFrom=True when using summarize(), graphite-web enters an infinite loop.
interval=0
alignToFrom=True
summarize()
NB:
alignToFrom=false
ZeroDivisionError
To Reproduce Steps to reproduce the behavior:
Render a target summarize(some.metric, 0, "sum", true). The process spins on CPU and grows until memory is exhausted.
summarize(some.metric, 0, "sum", true)
Expected behavior Receive a suitable error message.
Environment (please complete the following information):
Describe the bug If you set
interval=0
andalignToFrom=True
when usingsummarize()
, graphite-web enters an infinite loop.NB:
alignToFrom=false
, the infinite loop is avoided due to aZeroDivisionError
.To Reproduce Steps to reproduce the behavior:
Render a target
summarize(some.metric, 0, "sum", true)
. The process spins on CPU and grows until memory is exhausted.Expected behavior Receive a suitable error message.
Environment (please complete the following information):