prometheus/storage
György Krajcsovits 44ebbb8458 Fix missing histogram copy in sampleRing
The specialized version of sample add to the ring:
func addH(s hSample, buf []hSample, r *sampleRing) []hSample
func addFH(s fhSample, buf []fhSample, r *sampleRing) []fhSample
already correctly copy histogram samples from the reused hReader, fhReader
buffers, but the generic version does not. This means that the
data is overwritten on the next read if the sample ring has seen histogram
and float samples at the same time and switched to generic mode.

The `genericAdd` function (which was commented anyway) is by now quite
different from the specialized functions so that this commit deletes
it.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-10-02 13:57:28 +02:00
..
remote fix(test): adjust defer invocations (#14996) 2024-09-27 17:13:51 +01:00
buffer.go Fix missing histogram copy in sampleRing 2024-10-02 13:57:28 +02:00
buffer_test.go Unit test for regression in rate vs float and histogram mixup 2024-10-02 13:56:33 +02:00
errors.go Fix appendable: check whether last val was a histogram (#14613) 2024-08-07 15:02:59 +02:00
errors_test.go Fix appendable: check whether last val was a histogram (#14613) 2024-08-07 15:02:59 +02:00
fanout.go Histogram CT Zero ingestion 2024-09-26 11:29:22 -03:00
fanout_test.go Merge pull request #14109 from harry671003/pass_limit_to_querier 2024-07-12 10:27:52 +01:00
generic.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
interface.go Histogram CT Zero ingestion 2024-09-26 11:29:22 -03:00
interface_test.go Fix: chunkenc.MockSeriesIterator 2024-08-30 16:44:36 +02:00
lazy.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
memoized_iterator.go storage: add AtT method to MemoizedSeriesIterator 2024-07-15 14:09:02 +10:00
memoized_iterator_test.go storage: add AtT method to MemoizedSeriesIterator 2024-07-15 14:09:02 +10:00
merge.go [ENHANCEMENT] Storage: Short-circuit merge of single querier with no-op queriers 2024-07-22 15:35:09 +01:00
merge_test.go lint 2024-07-22 16:34:42 +01:00
noop.go Pass limit param as hint to storage.Querier 2024-06-20 09:47:38 -07:00
secondary.go Pass limit param as hint to storage.Querier 2024-06-20 09:47:38 -07:00
series.go Unit test for regression in rate vs float and histogram mixup 2024-10-02 13:56:33 +02:00
series_test.go chore: fix some function names 2024-08-15 13:57:21 +08:00