diff --git a/pkg/compactor/background_chunks_series_set.go b/pkg/compactor/background_chunks_series_set.go index 7e300fed2a..bca40f73d2 100644 --- a/pkg/compactor/background_chunks_series_set.go +++ b/pkg/compactor/background_chunks_series_set.go @@ -4,6 +4,7 @@ import ( "context" "github.com/prometheus/prometheus/storage" + "github.com/prometheus/prometheus/util/annotations" ) type backgrounChunkSeriesSet struct { @@ -26,7 +27,7 @@ func (b *backgrounChunkSeriesSet) Err() error { return b.cs.Err() } -func (b *backgrounChunkSeriesSet) Warnings() storage.Warnings { +func (b *backgrounChunkSeriesSet) Warnings() annotations.Annotations { return b.cs.Warnings() } diff --git a/pkg/compactor/sharded_block_populator.go b/pkg/compactor/sharded_block_populator.go index e178b59cea..3854c94224 100644 --- a/pkg/compactor/sharded_block_populator.go +++ b/pkg/compactor/sharded_block_populator.go @@ -91,7 +91,7 @@ func (c ShardedBlockPopulator) PopulateBlock(ctx context.Context, metrics *tsdb. closers = append(closers, tombsr) k, v := index.AllPostingsKey() - all, err := indexr.Postings(k, v) + all, err := indexr.Postings(ctx, k, v) if err != nil { return err }