mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
storage: Mark storage as dirty if indexing fails
This commit is contained in:
parent
5f764d9940
commit
f3365c4f26
|
@ -1381,9 +1381,11 @@ func (p *persistence) processIndexingQueue() {
|
||||||
|
|
||||||
if err := p.labelPairToFingerprints.IndexBatch(pairToFPs); err != nil {
|
if err := p.labelPairToFingerprints.IndexBatch(pairToFPs); err != nil {
|
||||||
log.Error("Error indexing label pair to fingerprints batch: ", err)
|
log.Error("Error indexing label pair to fingerprints batch: ", err)
|
||||||
|
p.setDirty(err)
|
||||||
}
|
}
|
||||||
if err := p.labelNameToLabelValues.IndexBatch(nameToValues); err != nil {
|
if err := p.labelNameToLabelValues.IndexBatch(nameToValues); err != nil {
|
||||||
log.Error("Error indexing label name to label values batch: ", err)
|
log.Error("Error indexing label name to label values batch: ", err)
|
||||||
|
p.setDirty(err)
|
||||||
}
|
}
|
||||||
batchSize = 0
|
batchSize = 0
|
||||||
nameToValues = index.LabelNameLabelValuesMapping{}
|
nameToValues = index.LabelNameLabelValuesMapping{}
|
||||||
|
|
Loading…
Reference in a new issue