prometheus/storage
beorn7 46a0837816 storage: Fix offset returned by dropAndPersistChunks
This is another corner-case that was previously never exercised
because the rewriting of a series file was never prevented by the
shrink ratio.

Scenario: There is an existing series on disk, which is archived. If a
new sample comes in for that file, a new chunk in memory is created,
and the chunkDescsOffset is set to -1. If series maintenance happens
before the series has at least one chunk to persist _and_ an
insufficient chunks on disk is old enough for purging (so that the
shrink ratio kicks in), dropAndPersistChunks would return 0, but it
should return the chunk length of the series file.
2017-02-09 14:35:07 +01:00
..
local storage: Fix offset returned by dropAndPersistChunks 2017-02-09 14:35:07 +01:00
metric storage: improve index lookups 2016-07-20 17:35:53 +02:00
remote Don't clone the metric if there's no remote writes. 2016-12-21 11:34:48 +00:00
storage.go Fix deadlock, structure target logging 2016-02-03 10:39:34 +01:00