prometheus/storage/local
beorn7 47e3c90f9b Clean up error propagation
Only return an error where callers are doing something with it except
simply logging and ignoring.

All the errors touched in this commit flag the storage as dirty
anyway, and that fact is logged anyway. So most of what is being
removed here is just log spam.

As discussed earlier, the class of errors that flags the storage as
dirty signals fundamental corruption, no even bubbling up a one-time
warning to the user (e.g. about incomplete results) isn't helping much
because _anything_ happening in the storage has to be doubted from
that point on (and in fact retroactively into the past, too). Flagging
the storage dirty, and alerting on it (plus marking the state in the
web UI) is the only way I can see right now.

As a byproduct, I cleaned up the setDirty method a bit and improved
the logged errors.
2016-03-09 18:56:30 +01:00
..
codable Replace metric.LabelPair with model.LabelPair 2015-08-22 13:32:13 +02:00
fixtures/b0 Add benchmark for loading chunks and chunk descs. 2015-03-19 19:28:21 +01:00
index Handle errors caused by data corruption more gracefully 2016-03-02 23:02:34 +01:00
storagetool Move dump-heads into its own tool 2016-03-07 16:30:19 +01:00
chunk.go Make chunkIterator even leaner. 2016-03-09 16:20:39 +01:00
crashrecovery.go Clean up error propagation 2016-03-09 18:56:30 +01:00
delta.go Make chunk iterators more DRY 2016-03-07 20:23:14 +01:00
delta_helpers.go Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
doubledelta.go Make chunk iterators more DRY 2016-03-07 20:23:14 +01:00
heads.go Merge branch 'master' into beorn7/storage4 2016-03-08 00:14:00 +01:00
instrumentation.go Handle errors caused by data corruption more gracefully 2016-03-02 23:02:34 +01:00
interface.go Improve MetricsForLabelMatchers 2016-03-09 00:25:59 +01:00
locker.go Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
locker_test.go Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
mapper.go Switch to common/log 2015-10-03 10:21:43 +02:00
mapper_test.go Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
persistence.go Clean up error propagation 2016-03-09 18:56:30 +01:00
persistence_test.go Clean up error propagation 2016-03-09 18:56:30 +01:00
preload.go Merge branch 'beorn7/storage3' into beorn7/storage4 2016-03-09 17:13:16 +01:00
series.go Merge branch 'beorn7/storage5' into beorn7/storage6 2016-03-09 17:21:32 +01:00
storage.go Clean up error propagation 2016-03-09 18:56:30 +01:00
storage_test.go Clean up error propagation 2016-03-09 18:56:30 +01:00
test_helpers.go Fix some dead code, missing error checks, shadowings. 2015-09-14 12:21:34 +02:00