graphite-project / graphite-web

A highly scalable real-time graphing system
http://graphite.readthedocs.org/
Apache License 2.0
5.88k stars 1.26k forks source link

[BUG] summarize() enters infinite loop when interval=0 and alignToFrom=True #2783

Closed jonnangle closed 1 year ago

jonnangle commented 1 year ago

Describe the bug If you set interval=0 and alignToFrom=True when using summarize(), graphite-web enters an infinite loop.

NB:

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):