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

Crash when deleting a newly created DB with some events #378

Closed
lra opened this issue Mar 30, 2014 · 1 comment
Closed

Crash when deleting a newly created DB with some events #378

lra opened this issue Mar 30, 2014 · 1 comment
Milestone

Comments

@lra
Copy link

lra commented Mar 30, 2014

Using the python lib on a mac with homebrew's influxdb 0.5.2.

I have this python script:

from influxdb import InfluxDBClient


host='localhost'
port=8086
user = 'root'
password = 'root'
dbname = 'example'
dbuser = 'smly'
dbuser_password = 'my_secret_password'
query = 'select column_one from foo;'
json_body = [{
    "points": [
        ["1", 1, 1.0],
        ["2", 2, 2.0]
    ],
    "name": "foo",
    "columns": ["column_one", "column_two", "column_three"]
}]

client = InfluxDBClient(host, port, user, password, dbname)
client.create_database(dbname)
client.add_database_user(dbuser, dbuser_password)
client.switch_user(dbuser, dbuser_password)
for i in range(1000):
    client.write_points(json_body)
client.switch_user(user, password)
client.delete_database(dbname)

On a shell, I launch a pristing influxdb

$ rm -rf /usr/local/var/influxdb/
$ influxdb -v
InfluxDB v0.5.2 (git: 92a7d370429e39a8c785dbe3be4f937d0b62cf12)
$ influxdb -config=/usr/local/etc/influxdb.conf
[...]
[03/29/14 23:07:53] [INFO] Starting admin interface on port 8083
[03/29/14 23:07:53] [INFO] Starting Http Api server on port 8086

If I launch the python script, I can reproduce an influxdb crash with a huge backtrace, and this error just before:

panic: invalid index entry: [1001,1000,130663,130663]

Full backtrace here: https://gist.github.com/lra/9866860

@toddboom
Copy link
Contributor

@lra This definitely shouldn't be happening. Will try to reproduce over here and figure out what's going on. Thanks for the detailed issue!

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