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

InfluxDB crashes on floats without decimal #3289

Closed
mcrot opened this issue Jul 10, 2015 · 0 comments
Closed

InfluxDB crashes on floats without decimal #3289

mcrot opened this issue Jul 10, 2015 · 0 comments
Assignees

Comments

@mcrot
Copy link

mcrot commented Jul 10, 2015

The documentation states clearly that every float must have a decimal.
However it happened to me that my data had something like "9e-05".
This crashed the server:

panic: unable to parse number value '9e-05': strconv.ParseInt: parsing "9e-05": invalid syntax

With these requests I can reproduce the error on a fresh database:

curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE crash_on_float_without_decimal"
curl -i -XPOST 'http://localhost:8086/write?db=crash_on_float_without_decimal' --data-binary 'cpu_temp,region=us-west degrees=9e-05 1434055562000000000'

I'm currently using a nightly build, installed from Debian package on a Debian 7 machine, 64 bit:

2015/07/10 16:01:04 InfluxDB starting, version 0.9.1-rc1-111-g8b67872, commit 8b67872d6bd1013d455e3b12af3e79b24d78bf0d

I understand the need for fixed number format, but it would be nice to receive an error message
when sending the wrong format.

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

2 participants