prometheus/tsdb/index
Oleg Zaytsev 50ef0dc954
Fix `MemPostings.Add` and `MemPostings.Get` data race (#15141)
* Tests for Mempostings.{Add,Get} data race
* Fix MemPostings.{Add,Get} data race

We can't modify the postings list that are held in MemPostings as they
might already be in use by some readers.

* Modify BenchmarkHeadStripeSeriesCreate to have common labels

If there are no common labels on the series, we don't excercise the
ordering part of MemSeries, as we're just creating slices of one element
for each label value.

---------

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2024-10-11 15:21:15 +02:00
..
index.go Merge remote-tracking branch 'origin/release-2.55' into merge-2.55-into-main 2024-09-22 17:49:34 +01:00
index_test.go add unit test 2024-06-16 12:09:42 -07:00
postings.go Fix `MemPostings.Add` and `MemPostings.Get` data race (#15141) 2024-10-11 15:21:15 +02:00
postings_test.go Fix `MemPostings.Add` and `MemPostings.Get` data race (#15141) 2024-10-11 15:21:15 +02:00
postingsstats.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00
postingsstats_test.go Upgrade golangci-lint to v1.60.1 2024-08-18 12:13:25 +02:00