mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
4414f1e2e1
This commit fixes flaky test TestWriteRead/read/graphite/subquery-aggregation in app/victoria-metrics/main_test.go The test fails when the test execution falls on the first second of a minute, for example 6:59:00. In all other cases (such as 6:59:01) the test passes. The test fails because of the way VictoriaMetrics implements sub-queries: it aligns the time range to the step. The test config does not account for this. Assuming that the implementation is correct, the fix is to adjust the test config so that the data is inserted at intervals other than 1m. Signed-off-by: Artem Fetishev <rtm@victoriametrics.com>
14 lines
652 B
JSON
14 lines
652 B
JSON
{
|
|
"name": "subquery-aggregation",
|
|
"issue": "https://github.com/VictoriaMetrics/VictoriaMetrics/issues/184",
|
|
"data": [
|
|
"forms_daily_count;item=x 1 {TIME_S-59s}",
|
|
"forms_daily_count;item=x 2 {TIME_S-1m59s}",
|
|
"forms_daily_count;item=y 3 {TIME_S-59s}",
|
|
"forms_daily_count;item=y 4 {TIME_S-1m59s}"],
|
|
"query": ["/api/v1/query?query=min%20by%20(item)%20(min_over_time(forms_daily_count[10m:1m]))&time={TIME_S-1m}&latency_offset=1ms"],
|
|
"result_query": {
|
|
"status":"success",
|
|
"data":{"resultType":"vector","result":[{"metric":{"item":"x"},"value":["{TIME_S-1m}","2"]},{"metric":{"item":"y"},"value":["{TIME_S-1m}","4"]}]}
|
|
}
|
|
}
|