mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Mitigates https://github.com/prometheus/prometheus/issues/14808 Signed-off-by: Manik Rana <manikrana54@gmail.com> Co-authored-by: Manik Rana <Manikrana54@gmail.com>
This commit is contained in:
parent
442f24e099
commit
f1d3c3f464
|
@ -1655,12 +1655,14 @@ loop:
|
||||||
if seriesAlreadyScraped && parsedTimestamp == nil {
|
if seriesAlreadyScraped && parsedTimestamp == nil {
|
||||||
err = storage.ErrDuplicateSampleForTimestamp
|
err = storage.ErrDuplicateSampleForTimestamp
|
||||||
} else {
|
} else {
|
||||||
if ctMs := p.CreatedTimestamp(); sl.enableCTZeroIngestion && ctMs != nil {
|
if sl.enableCTZeroIngestion {
|
||||||
ref, err = app.AppendCTZeroSample(ref, lset, t, *ctMs)
|
if ctMs := p.CreatedTimestamp(); ctMs != nil {
|
||||||
if err != nil && !errors.Is(err, storage.ErrOutOfOrderCT) { // OOO is a common case, ignoring completely for now.
|
ref, err = app.AppendCTZeroSample(ref, lset, t, *ctMs)
|
||||||
// CT is an experimental feature. For now, we don't need to fail the
|
if err != nil && !errors.Is(err, storage.ErrOutOfOrderCT) { // OOO is a common case, ignoring completely for now.
|
||||||
// scrape on errors updating the created timestamp, log debug.
|
// CT is an experimental feature. For now, we don't need to fail the
|
||||||
level.Debug(sl.l).Log("msg", "Error when appending CT in scrape loop", "series", string(met), "ct", *ctMs, "t", t, "err", err)
|
// scrape on errors updating the created timestamp, log debug.
|
||||||
|
level.Debug(sl.l).Log("msg", "Error when appending CT in scrape loop", "series", string(met), "ct", *ctMs, "t", t, "err", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue