Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

panic when executing query #674

Closed
woodsaj opened this issue Jun 30, 2017 · 0 comments
Closed

panic when executing query #674

woodsaj opened this issue Jun 30, 2017 · 0 comments
Assignees
Labels

Comments

@woodsaj
Copy link
Member

woodsaj commented Jun 30, 2017

Panic when handing /render request.

Request parameters

target=alias(averageSeries(metrictank.stats.us-east-5000-hg.{mt-read02-5000-medium-hg-2715892403-8x90x,mt-read00-5000-medium-hg-3766826891-zpb8p,mt-read03-5000-medium-hg-2866100935-0s1x6,mt-write01-5000-medium-hg-1609294676-svxx2,mt-read01-5000-medium-hg-2840869343-886fd,mt-write03-5000-medium-hg-3144279216-h7d0m,mt-read00-5000-medium-hg-3766826891-1n0vf,mt-read01-5000-medium-hg-2840869343-97sv0,mt-write02-5000-medium-hg-3772245138-k8rpj,mt-read03-5000-medium-hg-2866100935-8pz5x,mt-read02-5000-medium-hg-2715892403-fr1kz,mt-write00-5000-medium-hg-3102859222-cqh47}.store.cassandra.get.wait.latency.p90.gauge32), 'get p90')
target=alias(averageSeries(metrictank.stats.us-east-5000-hg.{mt-read02-5000-medium-hg-2715892403-8x90x,mt-read00-5000-medium-hg-3766826891-zpb8p,mt-read03-5000-medium-hg-2866100935-0s1x6,mt-write01-5000-medium-hg-1609294676-svxx2,mt-read01-5000-medium-hg-2840869343-886fd,mt-write03-5000-medium-hg-3144279216-h7d0m,mt-read00-5000-medium-hg-3766826891-1n0vf,mt-read01-5000-medium-hg-2840869343-97sv0,mt-write02-5000-medium-hg-3772245138-k8rpj,mt-read03-5000-medium-hg-2866100935-8pz5x,mt-read02-5000-medium-hg-2715892403-fr1kz,mt-write00-5000-medium-hg-3102859222-cqh47}.store.cassandra.put.wait.latency.p90.gauge32), 'put p90')
from=-15min
until=now
format=json
maxDataPoints=638

response

PANIC: runtime error: index out of range

PANIC

runtime error: index out of range
/usr/local/go/src/runtime/panic.go:489 (0x42a57f)
/usr/local/go/src/runtime/panic.go:28 (0x4291fe)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/expr/func_avgseries.go:39 (0x991a70)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/expr/func_alias.go:28 (0x990611)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/expr/plan.go:212 (0x99c64e)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/api/graphite.go:566 (0x9c2a06)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/api/graphite.go:204 (0x9be25c)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/api/routes.go:43 (0x9c8db2)
/usr/local/go/src/runtime/asm_amd64.s:516 (0x4571a6)
/usr/local/go/src/reflect/value.go:434 (0x4a322f)
/usr/local/go/src/reflect/value.go:302 (0x4a27f4)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:177 (0x931f6f)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:137 (0x93193a)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/context.go:113 (0x94f3c2)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/context.go:104 (0x94f2e6)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/api/middleware/stats.go:72 (0x96d8d7)
/usr/local/go/src/runtime/asm_amd64.s:514 (0x457088)
/usr/local/go/src/reflect/value.go:434 (0x4a322f)
/usr/local/go/src/reflect/value.go:302 (0x4a27f4)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:177 (0x931f6f)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:137 (0x93193a)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/context.go:113 (0x94f3c2)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/context.go:104 (0x94f2e6)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/raintank/gziper/gzip.go:73 (0x9b410d)
/usr/local/go/src/runtime/asm_amd64.s:514 (0x457088)
/usr/local/go/src/reflect/value.go:434 (0x4a322f)
/usr/local/go/src/reflect/value.go:302 (0x4a27f4)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:177 (0x931f6f)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:137 (0x93193a)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/context.go:113 (0x94f3c2)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/context.go:104 (0x94f2e6)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/recovery.go:161 (0x960ceb)
/usr/local/go/src/runtime/asm_amd64.s:514 (0x457088)
/usr/local/go/src/reflect/value.go:434 (0x4a322f)
/usr/local/go/src/reflect/value.go:302 (0x4a27f4)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:177 (0x931f6f)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:137 (0x93193a)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/context.go:113 (0x94f3c2)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/context.go:104 (0x94f2e6)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/logger.go:43 (0x95ffa4)
/usr/local/go/src/runtime/asm_amd64.s:514 (0x457088)
/usr/local/go/src/reflect/value.go:434 (0x4a322f)
/usr/local/go/src/reflect/value.go:302 (0x4a27f4)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:177 (0x931f6f)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/github.com/go-macaron/inject/inject.go:137 (0x93193a)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/context.go:113 (0x94f3c2)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/router.go:184 (0x961fb9)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/router.go:286 (0x95b45d)
/home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/vendor/gopkg.in/macaron.v1/macaron.go:177 (0x95382c)
/usr/local/go/src/net/http/server.go:2568 (0x6db192)
/usr/local/go/src/net/http/server.go:1825 (0x6d7562)
/usr/local/go/src/runtime/asm_amd64.s:2197 (0x4597d1)

@woodsaj woodsaj added the bug label Jun 30, 2017
Dieterbe added a commit that referenced this issue Jul 6, 2017
nilpointer bugfix: in[0] may not exist. fix #674
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants