Merge pull request #2587 from prometheus/beorn7/storage2

storage: Mark storage as dirty if indexing fails
This commit is contained in:
Björn Rabenstein 2017-04-06 16:42:06 +02:00 committed by GitHub
commit 516a96d9a3

View file

@ -1381,9 +1381,11 @@ func (p *persistence) processIndexingQueue() {
if err := p.labelPairToFingerprints.IndexBatch(pairToFPs); err != nil {
log.Error("Error indexing label pair to fingerprints batch: ", err)
p.setDirty(err)
}
if err := p.labelNameToLabelValues.IndexBatch(nameToValues); err != nil {
log.Error("Error indexing label name to label values batch: ", err)
p.setDirty(err)
}
batchSize = 0
nameToValues = index.LabelNameLabelValuesMapping{}