Michael Desa
8c87c9d132
revert #442
2018-08-01 14:54:32 -04:00
Leonardo Di Donato
0778344cb0
Refactoring query package
2018-08-01 18:20:59 +02:00
Nathaniel Cook
21286235dd
fix: Fix deadlock in query stats
2018-07-27 14:55:38 -06:00
Nathaniel Cook
920ef30a99
Merged pull request #494 from influxdata/nc-query-panic
...
fix: Panic in query/controller on Statistics
2018-07-27 09:30:49 -06:00
Nathaniel Cook
47b7f512da
fix: Panic in query/controller on Statistics
2018-07-27 09:15:28 -06:00
jlapacik
69e3627f42
controller sets Now time before enqueuing a query
2018-07-26 10:36:19 -07:00
Jonathan A. Sternberg
ff8c9cfb34
fix(query/control): cancel the enqueue of a query if the context finishes
...
If a query is attempting to be enqueued and it gets canceled, it will
now stop attempting to add it to the new queries queue and return the
error reported by the context. This allows the http server to cancel a
running query when the client disconnects for whatever reason without
continuing to attempt to process the canceled query.
2018-07-18 15:37:25 -05:00
Nathaniel Cook
85b7d36147
feat: Add query statistics
...
Introduces the Statisticser interface which ResultIterators may
implement.
The HTTP implementation uses HTTP trailers to preserve the statistics.
This way we do not need to have all encoders and decoders support
statistics.
2018-07-17 09:16:27 -06:00
jlapacik
524c4ccf35
flux options interface
...
default now option value
2018-07-16 14:24:37 -07:00
Jonathan A. Sternberg
4a275e0e2e
feat(query/control): catch panics when executing a query in the controller
2018-07-12 17:16:12 -05:00
Jonathan A. Sternberg
3d67f92c82
Merge pull request #397 from influxdata/nc-controller-panic
...
fix(query): Fix panic in controller if planning errors
2018-07-12 12:50:30 -05:00
Nathaniel Cook
932c114649
fix(query): Fix panic in controller if planning errors
2018-07-12 11:47:34 -06:00
Mark Rushakoff
15efa9d411
chore(query/control): use non-global prometheus metrics
2018-07-11 16:54:23 -07:00
Jonathan A. Sternberg
b9a4f1be74
fix(query/control): race condition when attempting to plan a query in the controller
2018-07-09 15:40:07 -05:00
Jonathan A. Sternberg
9615528e31
fix(query/control): discard finished queries from the priority queue
2018-07-09 13:27:14 -05:00
Nathaniel Cook
41b822380b
chore: Make control.Controller implement AsyncQueryService
2018-06-25 15:24:40 -06:00
Mark Rushakoff
c74bcd11b4
chore(query): remove usage of query/id package
...
It was effectively a copied and pasted platform.ID, so change it to a
type alias. Once our known references to the query/id package are
updated to platform.ID, we'll delete the package.
2018-06-20 12:55:20 -07:00
Mark Rushakoff
34e4a2f8ac
fix(query/control): use Lock to avoid data race
...
The previous code used RLock even though it was modifying a field. I
observed a data race locally due to concurrent access on that field.
2018-06-13 08:22:00 -07:00
Nathaniel Cook
affc7e3976
move types around to avoid cyclic imports
2018-05-21 17:02:42 -06:00
Nathaniel Cook
20345b8701
rewrite imports
2018-05-21 15:20:06 -06:00
Nathaniel Cook
51b8aebebf
initial copy of ifql repo
2018-05-21 15:18:56 -06:00