mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 09:02:53 +00:00
5f366e9b62
This adds negative buckets and access of float histograms to TestHistogramChunkSameBuckets and TestHistogramChunkBucketChanges. It also exercises a specific pattern of reusing an iterator (one where no access has happened). This exposes two bugs (where entries for positive buckets where used where the corresponding entries for negative buckets should have been used). One was fixed in #11627 (not merged), which triggered the work in this commit. This commit fixes both issues, so #11627 can be closed. It also simplifies the code in the histogramIterator.Next method that aims to recycle existing slice capacity. Furthermore, this is on top of the release-2.40 branch because we should probably cut a bugfix release for this. Signed-off-by: beorn7 <beorn@grafana.com> |
||
---|---|---|
.. | ||
bstream_test.go | ||
bstream.go | ||
chunk_test.go | ||
chunk.go | ||
histogram_meta_test.go | ||
histogram_meta.go | ||
histogram_test.go | ||
histogram.go | ||
varbit_test.go | ||
varbit.go | ||
xor_test.go | ||
xor.go |