log last series labelset when hitting OOO series labels during compaction

Signed-off-by: Ben Ye <benye@amazon.com>
This commit is contained in:
Ben Ye 2024-10-24 09:27:15 -07:00
parent 3cb09acb21
commit 99882eec3b

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() {