prometheus/storage
Martin Chodur 00b110c65c
Fix data corruption in remote write if max_sample_age is applied (#14078)
* fix: try to reproduce the bug from https://github.com/prometheus/prometheus/issues/13979 in a test case

Signed-off-by: David Vavra <sevenood@gmail.com>

* fix: data corruption in remote write if max_sample_age is applied

Signed-off-by: David Vavra <sevenood@gmail.com>

* add benchmark for buildTimeSeries which does the filtering

Signed-off-by: Callum Styan <callumstyan@gmail.com>

---------

Signed-off-by: David Vavra <sevenood@gmail.com>
Signed-off-by: Callum Styan <callumstyan@gmail.com>
Co-authored-by: David Vavra <sevenood@gmail.com>
Co-authored-by: Callum Styan <callumstyan@gmail.com>
2024-06-21 14:19:58 -07:00
..
remote Fix data corruption in remote write if max_sample_age is applied (#14078) 2024-06-21 14:19:58 -07:00
buffer.go storage: simplify sampleRing fix 2024-03-05 15:41:18 +01:00
buffer_test.go SampleRingIterator: add currType field 2024-03-01 14:59:19 +01:00
errors.go tsdb: add details to duplicate sample error (#13277) 2024-06-04 08:54:09 +01:00
fanout.go
fanout_test.go
generic.go
interface.go tsdb: add details to duplicate sample error (#13277) 2024-06-04 08:54:09 +01:00
lazy.go
memoized_iterator.go
memoized_iterator_test.go
merge.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
merge_test.go golangci-lint: enable whitespace linter (#13905) 2024-04-11 09:27:54 +01:00
noop.go
secondary.go
series.go Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
series_test.go