Skip to content

Commit

Permalink
Merge pull request prometheus#2587 from prometheus/beorn7/storage2
Browse files Browse the repository at this point in the history
storage: Mark storage as dirty if indexing fails
  • Loading branch information
beorn7 authored Apr 6, 2017
2 parents beeb0b5 + f3365c4 commit 516a96d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/local/persistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 516a96d

Please sign in to comment.