{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/flux/issues/178","repository_url":"https://api.github.com/repos/influxdata/flux","labels_url":"https://api.github.com/repos/influxdata/flux/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/flux/issues/178/comments","events_url":"https://api.github.com/repos/influxdata/flux/issues/178/events","html_url":"https://github.com/influxdata/flux/issues/178","id":373726087,"node_id":"MDU6SXNzdWUzNzM3MjYwODc=","number":178,"title":"Running a query with `range(start: -0s)` hangs with high CPU usage","user":{"login":"chnn","id":638955,"node_id":"MDQ6VXNlcjYzODk1NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/638955?v=4","gravatar_id":"","url":"https://api.github.com/users/chnn","html_url":"https://github.com/chnn","followers_url":"https://api.github.com/users/chnn/followers","following_url":"https://api.github.com/users/chnn/following{/other_user}","gists_url":"https://api.github.com/users/chnn/gists{/gist_id}","starred_url":"https://api.github.com/users/chnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chnn/subscriptions","organizations_url":"https://api.github.com/users/chnn/orgs","repos_url":"https://api.github.com/users/chnn/repos","events_url":"https://api.github.com/users/chnn/events{/privacy}","received_events_url":"https://api.github.com/users/chnn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-25T00:22:10Z","updated_at":"2018-11-01T22:52:49Z","closed_at":"2018-11-01T22:52:50Z","author_association":"NONE","body":"I tried to run the following query by posting to InfluxDB's `/api/v2/query` endpoint:\r\n```\r\nfrom(bucket: \"telegraf/autogen\") |> range(start: -0s)\r\n```\r\nThe query never returns. I also noticed that `influxd` seems to start consuming quite a bit of CPU.\r\n\r\nMaybe a deadlock of some sort? If I quit `influxd` I get the following stack trace:\r\n\r\n<details><pre><code>\r\ngoroutine 0 [idle]:\r\nruntime.usleep(0x26f9c00002710)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/sys_darwin.go:151 +0x49\r\nruntime.sysmon()\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/proc.go:4346 +0xd0\r\nruntime.mstart1()\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/proc.go:1282 +0xe6\r\nruntime.mstart()\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/proc.go:1248 +0x66\r\n\r\ngoroutine 1 [chan receive]:\r\nmain.(*Main).Run(0xc0004c9f58, 0xc0000ba0e0, 0x2, 0x2, 0xc0004c9f68, 0x1af8b66)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/cmd/influxd/main.go:90 +0x2d1\r\nmain.main()\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/cmd/influxd/main.go:45 +0x12f\r\n\r\ngoroutine 19 [syscall]:\r\nos/signal.signal_recv(0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/sigqueue.go:139 +0x9f\r\nos/signal.loop()\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/os/signal/signal_unix.go:23 +0x22\r\ncreated by os/signal.init.0\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/os/signal/signal_unix.go:29 +0x41\r\n\r\ngoroutine 5 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x6263a78, 0x72, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/netpoll.go:173 +0x66\r\ninternal/poll.(*pollDesc).wait(0xc000395198, 0x72, 0xc000179900, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9a\r\ninternal/poll.(*pollDesc).waitRead(0xc000395198, 0xffffffffffffff00, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d\r\ninternal/poll.(*FD).Accept(0xc000395180, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_unix.go:384 +0x1a0\r\nnet.(*netFD).accept(0xc000395180, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/fd_unix.go:238 +0x42\r\nnet.(*TCPListener).accept(0xc0000c4838, 0x10755fe, 0xc0002e4000, 0x107552d)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/tcpsock_posix.go:139 +0x2e\r\nnet.(*TCPListener).Accept(0xc0000c4838, 0x0, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/tcpsock.go:260 +0x47\r\ngithub.com/influxdata/influxdb/tcp.(*Mux).Serve(0xc0002e4000, 0x1f06e40, 0xc0000c4838, 0xc0000c4838, 0x0)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tcp/mux.go:75 +0x92\r\ncreated by github.com/influxdata/influxdb/cmd/influxd/run.(*Server).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/cmd/influxd/run/server.go:396 +0x28b\r\n\r\ngoroutine 6 [select]:\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/flux/control.(*Controller).run(0xc000574840)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/control/controller.go:229 +0x1ae\r\ncreated by github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/control.New\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/control/controller.go:101 +0x2d5\r\n\r\ngoroutine 92 [select]:\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compact(0xc0000d4120, 0xc0011533f0)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1964 +0x25b\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableLevelCompactions.func1(0xc0011533f0, 0xc0000d4120)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:420 +0x5b\r\ncreated by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableLevelCompactions\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:420 +0x132\r\n\r\ngoroutine 29 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x6214d98, 0x72, 0xc00172d858)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/netpoll.go:173 +0x66\r\ninternal/poll.(*pollDesc).wait(0xc000134298, 0x72, 0xffffffffffffff00, 0x1ef7c60, 0x283c7e8)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9a\r\ninternal/poll.(*pollDesc).waitRead(0xc000134298, 0xc000773400, 0x400, 0x400)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d\r\ninternal/poll.(*FD).Read(0xc000134280, 0xc000773400, 0x400, 0x400, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_unix.go:169 +0x1d6\r\nnet.(*netFD).Read(0xc000134280, 0xc000773400, 0x400, 0x400, 0x100a8eb, 0xc000030000, 0x1c3f8e0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/fd_unix.go:202 +0x4f\r\nnet.(*conn).Read(0xc00048e028, 0xc000773400, 0x400, 0x400, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/net.go:177 +0x68\r\ncrypto/tls.(*block).readFromUntil(0xc000547170, 0x2c93a00, 0xc00048e028, 0x5, 0xc00048e028, 0xc00172da30)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/crypto/tls/conn.go:492 +0x89\r\ncrypto/tls.(*Conn).readRecord(0xc0001daa80, 0x1dfc017, 0xc0001daba0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/crypto/tls/conn.go:593 +0xdd\r\ncrypto/tls.(*Conn).Read(0xc0001daa80, 0xc000899000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/crypto/tls/conn.go:1145 +0xf1\r\nnet/http.(*persistConn).Read(0xc0004465a0, 0xc000899000, 0x1000, 0x1000, 0xc000446480, 0xc0004465a0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/transport.go:1497 +0x75\r\nbufio.(*Reader).fill(0xc0019b1620)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/bufio/bufio.go:100 +0x106\r\nbufio.(*Reader).Peek(0xc0019b1620, 0x1, 0x2, 0x0, 0x0, 0xc001280ba0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/bufio/bufio.go:132 +0x3f\r\nnet/http.(*persistConn).readLoop(0xc0004465a0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/transport.go:1645 +0x1a2\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/transport.go:1338 +0x941\r\n\r\ngoroutine 108 [select]:\r\nnet/http.setRequestCancel.func3(0x0, 0xc00051e600, 0xc000448dc0, 0xc000a9a1cc, 0xc000a98420)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/client.go:321 +0xcf\r\ncreated by net/http.setRequestCancel\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/client.go:320 +0x24e\r\n\r\ngoroutine 113 [select]:\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/flux/execute.(*result).Do(0xc001b51500, 0xc000c5f0e0, 0xc001b51500, 0xc001b74000)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/execute/result.go:61 +0xd9\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/flux/csv.(*ResultEncoder).Encode(0xc001b511d0, 0x1ef5380, 0xc001b644e0, 0x1efb9c0, 0xc001b51500, 0xc001b63590, 0x100bc78, 0x1c3fb60)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/csv/result.go:748 +0x336\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/flux.(*DelimitedMultiResultEncoder).Encode(0xc001b51200, 0x6223308, 0xc0014e8e40, 0x1f08ec0, 0xc001b51230, 0x1f0f701, 0xc0011b61e0, 0x0)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/result.go:184 +0xdc\r\ngithub.com/influxdata/influxdb/services/httpd.(*Handler).serveFluxQuery(0xc0003761e0, 0x6222e90, 0xc0014e8e40, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1189 +0x388\r\ngithub.com/influxdata/influxdb/services/httpd.(*Handler).serveFluxQuery-fm(0x6222e90, 0xc0014e8e40, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/handler.go:215 +0x48\r\nnet/http.HandlerFunc.ServeHTTP(0xc0003358d0, 0x6222e90, 0xc0014e8e40, 0xc000138600)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:1964 +0x44\r\ngithub.com/influxdata/influxdb/services/httpd.(*Handler).responseWriter.func1(0x1f02c80, 0xc0014e8de0, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1669 +0xab\r\nnet/http.HandlerFunc.ServeHTTP(0xc0002e8440, 0x1f02c80, 0xc0014e8de0, 0xc000138600)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:1964 +0x44\r\ngithub.com/influxdata/influxdb/services/httpd.gzipFilter.func1(0x1f02c80, 0xc0014e8de0, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/gzip.go:23 +0x29d\r\nnet/http.HandlerFunc.ServeHTTP(0xc0002e8460, 0x1f02c80, 0xc0014e8de0, 0xc000138600)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:1964 +0x44\r\ngithub.com/influxdata/influxdb/services/httpd.cors.func1(0x1f02c80, 0xc0014e8de0, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1614 +0xf3\r\nnet/http.HandlerFunc.ServeHTTP(0xc0002e8480, 0x1f02c80, 0xc0014e8de0, 0xc000138600)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:1964 +0x44\r\ngithub.com/influxdata/influxdb/services/httpd.requestID.func1(0x1f02c80, 0xc0014e8de0, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1645 +0x179\r\nnet/http.HandlerFunc.ServeHTTP(0xc0002e84a0, 0x1f02c80, 0xc0014e8de0, 0xc000138600)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:1964 +0x44\r\ngithub.com/influxdata/influxdb/services/httpd.(*Handler).logging.func1(0x1f02c80, 0xc0014e8dc0, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1653 +0xdc\r\nnet/http.HandlerFunc.ServeHTTP(0xc0002e84c0, 0x1f02c80, 0xc0014e8dc0, 0xc000138600)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:1964 +0x44\r\ngithub.com/influxdata/influxdb/services/httpd.(*Handler).recovery.func1(0x1f070c0, 0xc001258000, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/handler.go:1706 +0x147\r\nnet/http.HandlerFunc.ServeHTTP(0xc0002e84e0, 0x1f070c0, 0xc001258000, 0xc000138600)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:1964 +0x44\r\ngithub.com/influxdata/influxdb/vendor/github.com/bmizerany/pat.(*PatternServeMux).ServeHTTP(0xc000451ae0, 0x1f070c0, 0xc001258000, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/bmizerany/pat/mux.go:117 +0x155\r\ngithub.com/influxdata/influxdb/services/httpd.(*Handler).ServeHTTP(0xc0003761e0, 0x1f070c0, 0xc001258000, 0xc000138600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/handler.go:377 +0x247\r\nnet/http.serverHandler.ServeHTTP(0xc0000b41a0, 0x1f070c0, 0xc001258000, 0xc000138600)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:2741 +0xab\r\nnet/http.(*conn).serve(0xc001254000, 0x1f08900, 0xc000178b40)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:1847 +0x646\r\ncreated by net/http.(*Server).Serve\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:2851 +0x2f5\r\n\r\ngoroutine 30 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc0004465a0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/transport.go:1885 +0x113\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/transport.go:1339 +0x966\r\n\r\ngoroutine 146 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x6214cc8, 0x72, 0xc0001ca658)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/netpoll.go:173 +0x66\r\ninternal/poll.(*pollDesc).wait(0xc000134318, 0x72, 0xffffffffffffff00, 0x1ef7c60, 0x283c7e8)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9a\r\ninternal/poll.(*pollDesc).waitRead(0xc000134318, 0xc00051ea00, 0x1, 0x1)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d\r\ninternal/poll.(*FD).Read(0xc000134300, 0xc00051ea61, 0x1, 0x1, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_unix.go:169 +0x1d6\r\nnet.(*netFD).Read(0xc000134300, 0xc00051ea61, 0x1, 0x1, 0xc000c5e960, 0xc0001ca780, 0xc00051e840)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/fd_unix.go:202 +0x4f\r\nnet.(*conn).Read(0xc00017c1e0, 0xc00051ea61, 0x1, 0x1, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/net.go:177 +0x68\r\nnet/http.(*connReader).backgroundRead(0xc00051ea50)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:676 +0x5a\r\ncreated by net/http.(*connReader).startBackgroundRead\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:672 +0xd2\r\n\r\ngoroutine 98 [select]:\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compact(0xc0000d4a20, 0xc000a9a010)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1964 +0x25b\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableLevelCompactions.func1(0xc000a9a010, 0xc0000d4a20)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:420 +0x5b\r\ncreated by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableLevelCompactions\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:420 +0x132\r\n\r\ngoroutine 91 [select]:\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactCache(0xc0000d4120)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1917 +0x11b\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableSnapshotCompactions.func1(0xc0011533e0, 0xc0000d4120)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:499 +0x51\r\ncreated by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableSnapshotCompactions\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:499 +0x124\r\n\r\ngoroutine 49 [select]:\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactCache(0xc0000d4a20)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:1917 +0x11b\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableSnapshotCompactions.func1(0xc000a9a000, 0xc0000d4a20)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:499 +0x51\r\ncreated by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).enableSnapshotCompactions\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:499 +0x124\r\n\r\ngoroutine 93 [select]:\r\ngithub.com/influxdata/influxdb/tsdb.(*Store).monitorShards(0xc000253600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/store.go:1792 +0x16f\r\ngithub.com/influxdata/influxdb/tsdb.(*Store).Open.func1(0xc000253600)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/store.go:199 +0x42\r\ncreated by github.com/influxdata/influxdb/tsdb.(*Store).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/store.go:197 +0x2e7\r\n\r\ngoroutine 94 [select]:\r\ngithub.com/influxdata/influxdb/services/subscriber.(*Service).run(0xc000574780)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/subscriber/service.go:239 +0x29c\r\ngithub.com/influxdata/influxdb/services/subscriber.(*Service).Open.func1(0xc000574780)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/subscriber/service.go:98 +0x57\r\ncreated by github.com/influxdata/influxdb/services/subscriber.(*Service).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/subscriber/service.go:96 +0x160\r\n\r\ngoroutine 95 [select]:\r\ngithub.com/influxdata/influxdb/services/subscriber.(*Service).waitForMetaUpdates(0xc000574780)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/subscriber/service.go:165 +0xcf\r\ngithub.com/influxdata/influxdb/services/subscriber.(*Service).Open.func2(0xc000574780)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/subscriber/service.go:102 +0x57\r\ncreated by github.com/influxdata/influxdb/services/subscriber.(*Service).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/subscriber/service.go:100 +0x182\r\n\r\ngoroutine 96 [select]:\r\ngithub.com/influxdata/influxdb/monitor.(*Monitor).storeStatistics(0xc000376000)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/monitor/service.go:434 +0xb53\r\ncreated by github.com/influxdata/influxdb/monitor.(*Monitor).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/monitor/service.go:126 +0x333\r\n\r\ngoroutine 97 [select]:\r\ngithub.com/influxdata/influxdb/services/precreator.(*Service).runPrecreation(0xc00037c980)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/precreator/service.go:76 +0x10a\r\ncreated by github.com/influxdata/influxdb/services/precreator.(*Service).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/precreator/service.go:54 +0x22b\r\n\r\ngoroutine 114 [select]:\r\ngithub.com/influxdata/influxdb/tcp.(*listener).Accept(0xc000453170, 0x0, 0x0, 0x0, 0x0)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tcp/mux.go:236 +0x10b\r\ngithub.com/influxdata/influxdb/services/snapshotter.(*Service).serve(0xc000448820)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/snapshotter/service.go:94 +0x7b\r\ncreated by github.com/influxdata/influxdb/services/snapshotter.(*Service).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/snapshotter/service.go:68 +0x92\r\n\r\ngoroutine 115 [select]:\r\ngithub.com/influxdata/influxdb/services/continuous_querier.(*Service).backgroundLoop(0xc000136e10)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/continuous_querier/service.go:215 +0x187\r\ncreated by github.com/influxdata/influxdb/services/continuous_querier.(*Service).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/continuous_querier/service.go:133 +0x167\r\n\r\ngoroutine 128 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x6214e68, 0x72, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/netpoll.go:173 +0x66\r\ninternal/poll.(*pollDesc).wait(0xc000184298, 0x72, 0xc00050c000, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9a\r\ninternal/poll.(*pollDesc).waitRead(0xc000184298, 0xffffffffffffff00, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d\r\ninternal/poll.(*FD).Accept(0xc000184280, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_unix.go:384 +0x1a0\r\nnet.(*netFD).accept(0xc000184280, 0x1dfbdf0, 0xc000070dc8, 0x104e4b8)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/fd_unix.go:238 +0x42\r\nnet.(*TCPListener).accept(0xc0000c4098, 0x5bd10bdd, 0xc000070df0, 0x108ac66)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/tcpsock_posix.go:139 +0x2e\r\nnet.(*TCPListener).Accept(0xc0000c4098, 0xc000070e40, 0x18, 0xc0002a7500, 0x1312b75)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/tcpsock.go:260 +0x47\r\nnet/http.(*Server).Serve(0xc0000b41a0, 0x1f06e40, 0xc0000c4098, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:2826 +0x22f\r\nnet/http.Serve(0x1f06e40, 0xc0000c4098, 0x1ef4500, 0xc0003761e0, 0xc000a9e798, 0x1007530)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:2423 +0x6e\r\ngithub.com/influxdata/influxdb/services/httpd.(*Service).serve(0xc0000dcaa0, 0x1f06e40, 0xc0000c4098)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/service.go:250 +0x62\r\ngithub.com/influxdata/influxdb/services/httpd.(*Service).serveTCP(0xc0000dcaa0)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/service.go:238 +0x3c\r\ncreated by github.com/influxdata/influxdb/services/httpd.(*Service).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/httpd/service.go:186 +0x6aa\r\n\r\ngoroutine 129 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x6262e48, 0x72, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/netpoll.go:173 +0x66\r\ninternal/poll.(*pollDesc).wait(0xc000184398, 0x72, 0xc000368100, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9a\r\ninternal/poll.(*pollDesc).waitRead(0xc000184398, 0xffffffffffffff00, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d\r\ninternal/poll.(*FD).Accept(0xc000184380, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_unix.go:384 +0x1a0\r\nnet.(*netFD).accept(0xc000184380, 0xf700000000000000, 0x0, 0xf7f5b3f42babef81)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/fd_unix.go:238 +0x42\r\nnet.(*TCPListener).accept(0xc0000c40a0, 0x102cbf2, 0xc000178030, 0xc000db7e10)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/tcpsock_posix.go:139 +0x2e\r\nnet.(*TCPListener).Accept(0xc0000c40a0, 0x1dfb308, 0xc000146000, 0xc001037300, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/tcpsock.go:260 +0x47\r\ngithub.com/influxdata/influxdb/vendor/google.golang.org/grpc.(*Server).Serve(0xc000146000, 0x1f06e40, 0xc0000c40a0, 0x0, 0x0)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/google.golang.org/grpc/server.go:544 +0x210\r\ngithub.com/influxdata/influxdb/services/storage.(*grpcServer).serve(0xc00037c680, 0x1f06e40, 0xc0000c40a0)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/storage/grpc_server.go:44 +0x1b1\r\ncreated by github.com/influxdata/influxdb/services/storage.(*grpcServer).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/storage/grpc_server.go:33 +0x149\r\n\r\ngoroutine 130 [select]:\r\ngithub.com/influxdata/influxdb/services/retention.(*Service).run(0xc000448910)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/retention/service.go:78 +0x10f9\r\ngithub.com/influxdata/influxdb/services/retention.(*Service).Open.func1(0xc000448910)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/retention/service.go:51 +0x57\r\ncreated by github.com/influxdata/influxdb/services/retention.(*Service).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/services/retention/service.go:51 +0x1ae\r\n\r\ngoroutine 131 [select]:\r\ngithub.com/influxdata/influxdb/cmd/influxd/run.(*Server).startServerReporting(0xc00046c480)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/cmd/influxd/run/server.go:525 +0x10a\r\ncreated by github.com/influxdata/influxdb/cmd/influxd/run.(*Server).Open\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/cmd/influxd/run/server.go:470 +0xb90\r\n\r\ngoroutine 132 [select]:\r\ngithub.com/influxdata/influxdb/cmd/influxd/run.(*Command).monitorServerErrors(0xc0000f31e0)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/cmd/influxd/run/command.go:174 +0x178\r\ncreated by github.com/influxdata/influxdb/cmd/influxd/run.(*Command).Run\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/cmd/influxd/run/command.go:155 +0xefd\r\n\r\ngoroutine 147 [runnable]:\r\ngithub.com/influxdata/influxdb/models.AppendMakeKey(0xc000278210, 0x0, 0xb0, 0xade4034, 0x6, 0x3fffcc, 0xc0006bca20, 0x2, 0x2, 0x0, ...)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/models/points.go:1614 +0x1a7\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*arrayCursorIterator).seriesFieldKeyBytes(0xc000132c40, 0xade4034, 0x6, 0x3fffcc, 0xc0006bca20, 0x2, 0x2, 0xc0003ea530, 0xa, 0xc000278210, ...)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/array_cursor_iterator.go:76 +0xa4\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*arrayCursorIterator).buildIntegerArrayCursor(0xc000132c40, 0x1f089c0, 0xc001b51440, 0xade4034, 0x6, 0x3fffcc, 0xc0006bca20, 0x2, 0x2, 0xc0003ea530, ...)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/array_cursor_iterator.gen.go:39 +0xab\r\ngithub.com/influxdata/influxdb/tsdb/engine/tsm1.(*arrayCursorIterator).Next(0xc000132c40, 0x1f089c0, 0xc001b51440, 0xc00020f418, 0xc0000d7600, 0xc0011b65a0, 0xc0, 0xc000a44a80)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/array_cursor_iterator.go:63 +0x20c\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/platform/storage/reads.(*multiShardArrayCursors).createCursor(0xc00020f400, 0x0, 0x0, 0x0, 0xade4034, 0x6, 0x3fffcc, 0xc0006bca20, 0x2, 0x2, ...)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/platform/storage/reads/array_cursor.go:133 +0x140\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/platform/storage/reads.(*resultSet).Cursor(0xc0005d88f0, 0xc00020f401, 0x1560b1eebce045e8)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/platform/storage/reads/resultset.go:59 +0x74\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/platform/storage/reads.(*tableIterator).handleRead(0xc000834000, 0xc00051c620, 0x1f0a340, 0xc0005d88f0, 0x0, 0x0)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/platform/storage/reads/reader.go:135 +0xb9\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/platform/storage/reads.(*tableIterator).Do(0xc000834000, 0xc00051c620, 0xc001b51440, 0x1ef5560)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/platform/storage/reads/reader.go:124 +0x42e\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/platform/query/functions/inputs/storage.(*source).run(0xc0000d8640, 0x1f089c0, 0xc001b51440, 0x0, 0xc00005ff80)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/platform/query/functions/inputs/storage/storage.go:105 +0xfb\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/platform/query/functions/inputs/storage.(*source).Run(0xc0000d8640, 0x1f089c0, 0xc001b51440)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/platform/query/functions/inputs/storage/storage.go:96 +0x43\r\ngithub.com/influxdata/influxdb/vendor/github.com/influxdata/flux/execute.(*executionState).do.func1(0xc000134900, 0x1f089c0, 0xc001b51440, 0x1efd8c0, 0xc0000d8640)\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/execute/executor.go:221 +0x6b\r\ncreated by github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/execute.(*executionState).do\r\n\t/Users/chris/Dev/Go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/execute/executor.go:202 +0x99\r\n\r\ngoroutine 150 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x6214bf8, 0x72, 0xc001523a58)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/runtime/netpoll.go:173 +0x66\r\ninternal/poll.(*pollDesc).wait(0xc000186098, 0x72, 0xffffffffffffff00, 0x1ef7c60, 0x283c7e8)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9a\r\ninternal/poll.(*pollDesc).waitRead(0xc000186098, 0xc000544000, 0x1000, 0x1000)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d\r\ninternal/poll.(*FD).Read(0xc000186080, 0xc000544000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/internal/poll/fd_unix.go:169 +0x1d6\r\nnet.(*netFD).Read(0xc000186080, 0xc000544000, 0x1000, 0x1000, 0x105f460, 0xc001523b68, 0x130925a)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/fd_unix.go:202 +0x4f\r\nnet.(*conn).Read(0xc00048e000, 0xc000544000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/net.go:177 +0x68\r\nnet/http.(*connReader).Read(0xc00014a090, 0xc000544000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:786 +0xfc\r\nbufio.(*Reader).fill(0xc0001704e0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/bufio/bufio.go:100 +0x106\r\nbufio.(*Reader).Peek(0xc0001704e0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x104c538)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/bufio/bufio.go:132 +0x3f\r\nnet/http.(*conn).readRequest(0xc001b3e6e0, 0x1f08900, 0xc00047e000, 0x0, 0x0, 0x0)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:963 +0xb27\r\nnet/http.(*conn).serve(0xc001b3e6e0, 0x1f08900, 0xc00047e000)\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:1788 +0x49e\r\ncreated by net/http.(*Server).Serve\r\n\t/usr/local/Cellar/go/1.11.1/libexec/src/net/http/server.go:2851 +0x2f5\r\n\r\nrax    0x4\r\nrbx    0x0\r\nrcx    0x7000030becc8\r\nrdx    0x1\r\nrdi    0x903\r\nrsi    0x0\r\nrbp    0x7000030bed00\r\nrsp    0x7000030becc8\r\nr8     0x0\r\nr9     0x989680\r\nr10    0x1\r\nr11    0x246\r\nr12    0x0\r\nr13    0x0\r\nr14    0x0\r\nr15    0x7000030bed10\r\nrip    0x7fff71572876\r\nrflags 0x247\r\ncs     0x7\r\nfs     0x0\r\ngs     0x0\r\n</code></pre></details>\r\n\r\n\r\nIt's an admittedly silly query. I was thinking of using it for feature detection for a 1.7 InfluxDB instance (to check if a user has `flux-enabled = true` in their config), but I can certainly use something else.\r\n"},"comment":{"url":"https://api.github.com/repos/influxdata/flux/issues/comments/435213801","html_url":"https://github.com/influxdata/flux/issues/178#issuecomment-435213801","issue_url":"https://api.github.com/repos/influxdata/flux/issues/178","id":435213801,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTIxMzgwMQ==","user":{"login":"chnn","id":638955,"node_id":"MDQ6VXNlcjYzODk1NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/638955?v=4","gravatar_id":"","url":"https://api.github.com/users/chnn","html_url":"https://github.com/chnn","followers_url":"https://api.github.com/users/chnn/followers","following_url":"https://api.github.com/users/chnn/following{/other_user}","gists_url":"https://api.github.com/users/chnn/gists{/gist_id}","starred_url":"https://api.github.com/users/chnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chnn/subscriptions","organizations_url":"https://api.github.com/users/chnn/orgs","repos_url":"https://api.github.com/users/chnn/repos","events_url":"https://api.github.com/users/chnn/events{/privacy}","received_events_url":"https://api.github.com/users/chnn/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T22:52:49Z","updated_at":"2018-11-01T22:52:49Z","author_association":"NONE","body":"Seems to no longer be an issue."}}
{"actor":{"display_login":"chnn"}}