prometheus/model
beorn7 65ccf4460a textparse: Fix endless loop #12731
PR #12557 introduced the possibility of parsing multiple exemplars per
native histograms. It did so by requiring the `Exemplar` method of the
parser to be called repeatedly until it returns false. However, the
protobuf parser code wasn't correctly updated for the old case of a
single exemplar for a classic bucket (if actually parsed as a classic
bucket) and a single exemplar on a counter. In those cases, the method
would return `true` forever, yielding the same exemplar again and
again, leading to an endless loop.

With this fix, the state is now tracked and the single exemplar is
only returned once.

Signed-off-by: beorn7 <beorn@grafana.com>
2023-08-22 21:03:54 +02:00
..
exemplar
histogram enhance FloatHistogram CopyToSchema method (#12596) 2023-07-27 13:27:13 +02:00
labels Merge pull request #12681 from prometheus/labels-unused-code 2023-08-14 15:48:17 +01:00
metadata Introduce TSDB changes for appending metadata to the WAL (#10972) 2022-07-19 10:58:52 +02:00
relabel Merge branch 'main' of github.com:prometheus/prometheus into document-and-test-relabel-memory-reuse 2023-07-12 15:01:29 +02:00
rulefmt Add rulefmt tests 2023-01-19 10:44:35 +01:00
textparse textparse: Fix endless loop #12731 2023-08-22 21:03:54 +02:00
timestamp
value