mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
storage: One more persist error code path discovered
Also, in that code path, set chunkDescsOffset to 0 rather than -1 in case of "dropped more chunks from persistence than from memory" so that no other weird things happen before the series is quarantined for good.
This commit is contained in:
parent
eac9696a36
commit
bed4934224
@ -1513,7 +1513,8 @@ func (s *MemorySeriesStorage) writeMemorySeries(
|
||||
series.chunkDescsOffset -= numDroppedFromPersistence
|
||||
if series.chunkDescsOffset < 0 {
|
||||
persistErr = errors.New("dropped more chunks from persistence than from memory")
|
||||
series.chunkDescsOffset = -1
|
||||
series.chunkDescsOffset = 0
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user