mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
46a0837816
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. |
||
---|---|---|
.. | ||
local | ||
metric | ||
remote | ||
storage.go |