Merge pull request #15216 from yeya24/log-last-series-labels

log last series labelset when hitting OOO series labels
This commit is contained in:
Bryan Boreham 2024-11-01 14:15:39 +00:00 committed by GitHub
commit e2e01c1cff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -438,7 +438,7 @@ func (w *Writer) AddSeries(ref storage.SeriesRef, lset labels.Labels, chunks ...
return err
}
if labels.Compare(lset, w.lastSeries) <= 0 {
return fmt.Errorf("out-of-order series added with label set %q", lset)
return fmt.Errorf("out-of-order series added with label set %q, last label set %q", lset, w.lastSeries)
}
if ref < w.lastSeriesRef && !w.lastSeries.IsEmpty() {