Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntactically incorrect line protocol insert panics the database #3061

Closed
beckettsean opened this issue Jun 19, 2015 · 2 comments
Closed

syntactically incorrect line protocol insert panics the database #3061

beckettsean opened this issue Jun 19, 2015 · 2 comments
Assignees

Comments

@beckettsean
Copy link
Contributor

From #2883 (comment)

> use db
Using database db
> INSERT foo,a=b 123
ERR: Post http://localhost:8086/write?consistency=any&db=db&precision=n&rp=default: EOF

Logs:

panic: unsupported value type during encode fields: <nil>

goroutine 68 [running]:
github.com/influxdb/influxdb/tsdb.(*FieldCodec).EncodeFields(0xc20802b450, 0xc20816a4b0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /private/tmp/influxdb20150611-31144-myuhfv/influxdb-0.9.0/src/github.com/influxdb/influxdb/tsdb/shard.go:571 +0xc56
github.com/influxdb/influxdb/tsdb.(*Shard).WritePoints(0xc20811b4c0, 0xc2080d41d0, 0x1, 0x1, 0x0, 0x0)
        /private/tmp/influxdb20150611-31144-myuhfv/influxdb-0.9.0/src/github.com/influxdb/influxdb/tsdb/shard.go:145 +0x427
github.com/influxdb/influxdb/tsdb.(*Store).WriteToShard(0xc208037740, 0xa2, 0xc2080d41d0, 0x1, 0x1, 0x0, 0x0)
        /private/tmp/influxdb20150611-31144-myuhfv/influxdb-0.9.0/src/github.com/influxdb/influxdb/tsdb/store.go:260 +0xf7
github.com/influxdb/influxdb/cluster.func·002(0xa2, 0x1, 0xc2080d41d0, 0x1, 0x1)
        /private/tmp/influxdb20150611-31144-myuhfv/influxdb-0.9.0/src/github.com/influxdb/influxdb/cluster/points_writer.go:241 +0xfc
created by github.com/influxdb/influxdb/cluster.(*PointsWriter).writeToShard
        /private/tmp/influxdb20150611-31144-myuhfv/influxdb-0.9.0/src/github.com/influxdb/influxdb/cluster/points_writer.go:271 +0x30b
@msiebuhr
Copy link

As opposed to #3062, this happens regardless of there is something in the database or not.

While playing around, I found some other queries crash the servers insert foo,a=b abc and insert foo 123, while insert foo seems to crash the client.

@msiebuhr
Copy link

Created bug #3078 for the client-side bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants