prometheus/storage/local
Bjoern Rabenstein 622e8350cd Fix a bug handling freshly unarchived series.
Usually, if you unarchive a series, it is to add something to it,
which will create a new head chunk. However, if a series in
unarchived, and before anything is added to it, it is handled by the
maintenance loop, it will be archived again. In that case, we have to
load the chunkDescs to know the lastTime of the series to be
archived. Usually, this case will happen only rarely (as a race, has
never happened so far, possibly because the locking around unarchiving
and the subsequent sample append is smart enough). However, during
crash recovery, we sometimes treat series as "freshly unarchived"
without directly appending a sample. We might add more cases of that
type later, so better deal with archiving properly and load chunkDescs
if required.
2015-01-08 16:25:50 +01:00
..
codable Add more tests. 2014-11-25 17:09:17 +01:00
index Adjust to the new version of goleveldb. 2014-12-10 18:04:29 +01:00
chunk.go Remove the remaining races, new and old. 2014-12-03 18:07:23 +01:00
delta.go Changes after pair code review. 2014-11-25 17:12:59 +01:00
instrumentation.go Squash a few trivial TODOs. 2014-11-27 18:26:06 +01:00
interface.go Fix a bug handling freshly unarchived series. 2015-01-08 16:25:50 +01:00
locker.go Fix and improve the fp locker. 2014-11-25 17:07:45 +01:00
locker_test.go Fix a few concurrency issues before starting to use the new fp locker. 2014-11-25 17:07:45 +01:00
persistence.go Fix a bug handling freshly unarchived series. 2015-01-08 16:25:50 +01:00
persistence_test.go Optimize purging. 2014-11-25 17:10:30 +01:00
preload.go Completed more TODOs. 2014-11-27 20:46:45 +01:00
series.go Fix a bug handling freshly unarchived series. 2015-01-08 16:25:50 +01:00
storage.go Fix a bug handling freshly unarchived series. 2015-01-08 16:25:50 +01:00
storage_test.go Fix a bug handling freshly unarchived series. 2015-01-08 16:25:50 +01:00
test_helpers.go Avoid test flags in normal binary. 2014-11-27 18:04:48 +01:00