prometheus/storage
Julius Volz 7a577b86b7 Fix interval op special case.
In the case that a getValuesAtIntervalOp's ExtractSamples() is called
with a current time after the last chunk time, we return without
extracting any further values beyond the last one in the chunk
(correct), but also without advancing the op's time (incorrect). This
leads to an infinite loop in renderView(), since the op is called
repeatedly without ever being advanced and consumed.

This adds handling for this special case. When detecting this case, we
immediately set the op to be consumed, since we would always get a value
after the current time passed in if there was one.

Change-Id: Id99149e07b5188d655331382b8b6a461b677005c
2014-03-26 13:29:03 +01:00
..
metric Fix interval op special case. 2014-03-26 13:29:03 +01:00
raw Store samples in custom binary encoding. 2014-03-09 22:31:38 +01:00
remote Fix typo. 2014-03-25 12:22:18 +01:00
interface.go Major code cleanup in storage. 2014-02-27 15:22:37 +01:00