prometheus/util/testutil
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
..
cmp.go utils: add DeepEqual replacement using go-cmp 2024-02-08 19:30:20 +00:00
context.go tsdb: check for context cancel before regex matching postings (#14096) 2024-05-15 06:26:19 +02:00
directory.go ci(lint): enable godot; append dot at the end of comments 2023-10-31 19:53:38 +02:00
logging.go Switched to go-kit/log 2021-06-11 12:28:36 -04:00
port.go util/testutil: add RandomUnprivilegedPort function 2021-11-10 09:40:43 +01:00
roundtrip.go lint: Adjust to the lint warnings raised by current versions of golint-ci 2023-04-19 17:10:10 +02:00
testing.go Ignore k8s' updateUnfinishedWorkLoop go routine in goleak tests (#8598) 2021-03-29 23:43:09 +02:00