prometheus/storage
Dan Milstein b815956341 Catch errors when unmarshalling delta/doubleDelta encoded chunks
This is (hopefully) a fix for #1653

Specifically, this makes it so that if the length for the stored
delta/doubleDelta is somehow corrupted to be too small, the attempt to
unmarshal will return an error.

The current (broken) behavior is to return a malformed chunk, which can
then lead to a panic when there is an attempt to read header values.

The referenced issue proposed creating chunks with a minimum length -- I
instead opted to just error on the attempt to unmarshal, since I'm not
clear on how it could be safe to proceed when the length is
incorrect/unknown.

The issue also talked about possibly "quarantining series", but I don't
know the surrounding code well enough to understand how to make that
happen.
2016-08-30 07:57:39 -04:00
..
local Catch errors when unmarshalling delta/doubleDelta encoded chunks 2016-08-30 07:57:39 -04:00
metric storage: improve index lookups 2016-07-20 17:35:53 +02:00
remote Add timeout to test, cap waiting at 1 second 2016-08-24 11:30:38 -04:00
storage.go Fix deadlock, structure target logging 2016-02-03 10:39:34 +01:00