prometheus/tsdb/index
George Krajcsovits fdaafdb041
tsdb: check for context cancel before regex matching postings (#14096)
* tsdb: check for context cancel before regex matching postings

Regex matching can be heavy if the regex takes a lot of cycles to
evaluate and we can get stuck evaluating postings for a long time
without this fix. The constant checkContextEveryNIterations=100
may be changed later.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-05-15 06:26:19 +02:00
..
index.go tsdb: check for context cancel before regex matching postings (#14096) 2024-05-15 06:26:19 +02:00
index_test.go tsdb: check for context cancel before regex matching postings (#14096) 2024-05-15 06:26:19 +02:00
postings.go tsdb: check for context cancel before regex matching postings (#14096) 2024-05-15 06:26:19 +02:00
postings_test.go tsdb: check for context cancel before regex matching postings (#14096) 2024-05-15 06:26:19 +02:00
postingsstats.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00
postingsstats_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00