mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Handle errSeriesDropped correctly
If metrics_relabel_configs are used to drop metrics, an errSeriesDropped is returned. This shouldn't be used to return an error at the end of a append() call.
This commit is contained in:
parent
8c483e27d3
commit
368206d2f5
|
@ -554,6 +554,7 @@ loop:
|
||||||
case storage.ErrNotFound:
|
case storage.ErrNotFound:
|
||||||
ok = false
|
ok = false
|
||||||
case errSeriesDropped:
|
case errSeriesDropped:
|
||||||
|
err = nil
|
||||||
continue
|
continue
|
||||||
default:
|
default:
|
||||||
break loop
|
break loop
|
||||||
|
@ -568,6 +569,7 @@ loop:
|
||||||
switch err {
|
switch err {
|
||||||
case nil:
|
case nil:
|
||||||
case errSeriesDropped:
|
case errSeriesDropped:
|
||||||
|
err = nil
|
||||||
continue
|
continue
|
||||||
default:
|
default:
|
||||||
break loop
|
break loop
|
||||||
|
|
Loading…
Reference in a new issue