mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
6286c10df0
This attempts to close #3973. Handles cases where the length of the input vector to an aggregate topk / bottomk function is less than the K paramater. The change updates Prometheus to allocate a result vector the same length as the input vector in these cases. Previously Prometheus would out-of-memory panic for large K values. This change makes that unlikely unless the size of the input vector is equally large. Signed-off-by: David King <dave@davbo.org> |
||
---|---|---|
.. | ||
fuzz-data | ||
testdata | ||
ast.go | ||
bench_test.go | ||
engine.go | ||
engine_test.go | ||
functions.go | ||
functions_test.go | ||
fuzz.go | ||
lex.go | ||
lex_test.go | ||
parse.go | ||
parse_test.go | ||
printer.go | ||
printer_test.go | ||
promql_test.go | ||
quantile.go | ||
test.go | ||
test_test.go | ||
value.go |