influxdb/cmd/influxd
davidby-influx 9c6e401372
feat: Make meta queries respect QueryTimeout values (#20910)
Meta queries (SHOW TAG VALUES, SHOW TAG KEYS, SHOW SERIES CARDINALITY, etc.) do not respect
the QueryTimeout config parameter. Meta queries should check the query context when possible
to allow cancellation and timeout. This will not be as frequent as regular queries, which
use iterators, because meta queries return data in batches.

Add a context.Context to
(*Store).MeasurementNames()
(*Store).MeasurementsCardinality()
(*Store).SeriesCardinality()
(*Store).TagValues()
(*Store).TagKeys()
(*Store).SeriesSketches()
(*Store).MeasurementsSketches()
which is tested for timeout or cancellation
to allow limitation of time spent in meta queries

https://github.com/influxdata/influxdb/issues/20736
(cherry picked from commit 092c7a9976)

* chore: move context.Context to first argument in methods per convention

(cherry picked from commit a8b2129df5)
2021-03-09 14:40:50 -08:00
..
backup Backup continue on errors (#10307) 2018-09-26 14:44:14 -04:00
backup_util chore: run goimports on 1.8 branch to bring it up to new check-in standards (#20907) 2021-03-09 12:08:26 -08:00
help Update godoc for the cmd package and subpackages 2016-12-30 11:58:43 -08:00
restore Fix legacy restore bug #10072 2018-08-17 09:39:25 +02:00
run feat: Make meta queries respect QueryTimeout values (#20910) 2021-03-09 14:40:50 -08:00
main.go Update logging calls to take advantage of structured logging 2018-02-20 10:04:19 -06:00