prometheus/storage/remote
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
..
azuread fix: correct the typo in azuread sdk auth (#14106) 2024-05-21 19:08:35 +02:00
otlptranslator otlp: Remove OTel feature gate registration from copied translation package (#13932) 2024-05-10 10:41:21 +02:00
chunked.go (storage): move from github.com/pkg/errors to 'errors' and 'fmt' (#10946) 2022-07-01 18:59:50 +02:00
chunked_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
client.go golangci-lint: enable usestdlibvars linter 2024-04-08 19:26:23 +00:00
client_test.go remote_write: add a unit test to make sure the write client sends 2023-11-09 15:56:48 +01:00
codec.go Export remote.LabelsToLabelsProto() and remote.LabelProtosToLabels() 2024-06-19 17:30:49 +02:00
codec_test.go Export remote.LabelsToLabelsProto() and remote.LabelProtosToLabels() 2024-06-19 17:30:49 +02:00
ewma.go style: Replace else if cascades with switch 2023-04-19 17:22:31 +02:00
intern.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
intern_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
max_timestamp.go Remote: Do not collect non-initialized timestamp metrics (#8060) 2020-10-15 23:53:59 +02:00
metadata_watcher.go scrape: consistent function names for metadata 2023-11-23 09:08:02 +00:00
metadata_watcher_test.go Move metric type definitions to common/model 2023-12-19 18:56:54 +00:00
queue_manager.go Fix data corruption in remote write if max_sample_age is applied (#14078) 2024-06-21 14:19:58 -07:00
queue_manager_test.go Fix data corruption in remote write if max_sample_age is applied (#14078) 2024-06-21 14:19:58 -07:00
read.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
read_handler.go Chunked remote read: close the querier earlier 2024-03-15 14:03:16 +01:00
read_handler_test.go test: add promqltest package references 2024-05-08 16:08:04 +01:00
read_test.go Export remote.LabelsToLabelsProto() and remote.LabelProtosToLabels() 2024-06-19 17:30:49 +02:00
storage.go remote/storage.go: adjust Storage.Notify() to avoid a race condition with Storage.ApplyConfig() 2023-11-14 10:07:45 +01:00
storage_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
write.go Append Created Timestamps (#12733) 2023-12-11 08:43:42 +00:00
write_handler.go Export remote.LabelsToLabelsProto() and remote.LabelProtosToLabels() 2024-06-19 17:30:49 +02:00
write_handler_test.go Export remote.LabelsToLabelsProto() and remote.LabelProtosToLabels() 2024-06-19 17:30:49 +02:00
write_test.go all: fix some typos (#13863) 2024-04-01 18:06:05 +02:00