influxdb/query
Jonathan A. Sternberg ecba19eb27 Prevent a panic when a query simultaneously finishes and is killed at the same time
There is a strange race condition where a query can be killed and finish
at approximately the same time. If this happens, the query gets
retrieved by the killing task, the query gets closed by the normal
processing thread, and then the killing task attempts to kill the query
afterwards. Since the close doesn't mark the query as already killed
(since it's not killed, just merely unused), the killing thread attempts
to close the channel again.

Mark the query as killed whenever it is closed to prevent a double close
from happening. This should never cause the status to be erroneously
reported since the query status is removed from the query table within
the same lock scope.
2018-01-02 11:04:01 -06:00
..
internal Fixing up tests. 2017-12-02 16:52:34 -07:00
neldermead move RewriteStatement and neldermead to influxdb/query package 2017-10-30 10:24:15 -07:00
call_iterator.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
call_iterator_test.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
cast.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
compile.go Fix query compilation so multiple nested distinct calls is allowable 2017-11-28 11:09:32 -06:00
compile_test.go Fix query compilation so multiple nested distinct calls is allowable 2017-11-28 11:09:32 -06:00
emitter.go Use index for SHOW X meta queries 2017-11-06 19:15:00 +00:00
emitter_test.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
explain.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
functions.gen.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
functions.gen.go.tmpl Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
functions.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
functions_test.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
iterator.gen.go Fixing up tests. 2017-12-02 16:52:34 -07:00
iterator.gen.go.tmpl Fix race condition in the merge iterator close method 2017-11-27 16:55:41 -06:00
iterator.go Pass through SystemIterator in PB 2017-11-08 19:57:16 +00:00
iterator_mapper.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
iterator_mapper_test.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
iterator_test.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
linear.go Add unsigned iterators for all types 2017-09-18 15:09:10 -05:00
monitor.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
point.gen.go EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00
point.gen.go.tmpl EXPLAIN ANALYZE 2017-10-20 08:01:37 -07:00
point.go Update influxql so DataType constants are the type DataType 2017-11-07 18:34:53 -06:00
point_test.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
query.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
query_executor.go Prevent a panic when a query simultaneously finishes and is killed at the same time 2018-01-02 11:04:01 -06:00
query_executor_test.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
result.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
select.go Use index for SHOW X meta queries 2017-11-06 19:15:00 +00:00
select_test.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
statement_rewriter.go Improve SHOW TAG KEYS performance. 2017-11-07 10:59:19 -07:00
statement_rewriter_test.go Improve SHOW TAG KEYS performance. 2017-11-07 10:59:19 -07:00
subquery.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
task_manager.go Update the zap logger dependency 2017-11-10 16:27:16 -06:00
tmpldata Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00