prometheus/promql
Bryan Boreham dbd7021cc2
promql: add test for race conditions in query engine (#11743)
* promql: refactor BenchmarkRangeQuery so we can re-use test cases

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* promql: add test for race conditions in query engine

Note we skip large count_values queries -
`count_values` allocates a slice per unique value in the output, and
this test has unique values on every step of every series so it adds up
to a lot of slices. Add Go runtime overhead for checking `-race`, and
it chews up many gigabytes.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* TestConcurrentRangeQueries: wait before starting goroutine

Instead of starting 100 goroutines which just wait for the semaphore.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-12-20 17:58:29 +01:00
..
fuzz-data
parser Switch from 'sanity' to more inclusive lanuage (#9376) 2022-11-28 17:09:18 +00:00
testdata Adds day_of_year function to PromQL 2022-05-20 14:08:34 +02:00
bench_test.go promql: add test for race conditions in query engine (#11743) 2022-12-20 17:58:29 +01:00
engine_test.go Merge 'main' into sparsehistogram 2022-10-05 22:14:49 +02:00
engine.go storage: allow re-use of iterators 2022-12-15 18:32:45 +00:00
functions_test.go Avoid literal integer overflows in 32 bit arches. 2022-03-29 22:51:20 +02:00
functions.go Switch from 'sanity' to more inclusive lanuage (#9376) 2022-11-28 17:09:18 +00:00
fuzz_test.go error for invalid media type should not be completely swallowed (#10186) 2022-02-08 10:57:56 +01:00
fuzz.go refactor (promql): move from github.com/pkg/errors to 'errors' and 'fmt' (#10817) 2022-06-08 10:47:52 +02:00
promql_test.go promql: add test for race conditions in query engine (#11743) 2022-12-20 17:58:29 +01:00
quantile.go histogram: Modify getBound to deal properly with infinity 2022-10-06 17:40:03 +02:00
query_logger_test.go refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00
query_logger.go Close file descriptor in query logging (#11148) 2022-08-17 15:27:27 +05:30
test_test.go storage: allow re-use of iterators 2022-12-15 18:32:45 +00:00
test.go Switch from 'sanity' to more inclusive lanuage (#9376) 2022-11-28 17:09:18 +00:00
value_test.go Shortcut ContainsSameLabelset() (#11000) 2022-07-13 15:18:10 +05:30
value.go storage: re-use iterators to save garbage 2022-12-15 18:32:45 +00:00