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

Panic in server #223

Merged
merged 2 commits into from
Jan 31, 2014
Merged

Panic in server #223

merged 2 commits into from
Jan 31, 2014

Conversation

jvshahid
Copy link
Contributor

Running the following query:

select count(distinct(mailing_recipient_id)) from /^store.*message_events$/
 group by time(1m), event, _provider where time > 1391188799999999u and 
time < 1391188860000000u

crashes with the following error:

Query: [select count(distinct(mailing_recipient_id)) from /^store.*message_events$/ group by time(1m), event, _provider where time > 1391188799999999u and time < 1391188860000000u]
Error: runtime error: invalid memory address or nil pointer dereference. Stacktrace: goroutine 21 [running]:
engine.recoverFunc(0xc2101f5406, 0x7, 0xc21004a790, 0xab)
    /home/jvshahid/codez/influxdb/src/engine/engine.go:100 +0x106
runtime.panic(0x85ca60, 0xfab3e8)
    /home/jvshahid/.gvm/gos/go1.2/src/pkg/runtime/panic.c:248 +0x106
engine.(*DistinctAggregator).AggregatePoint(0xc21016f600, 0xc210136e48, 0x18, 0x8a9d20, 0xc2101fa440, ...)
    /home/jvshahid/codez/influxdb/src/engine/aggregator.go:850 +0x180
engine.(*CompositeAggregator).AggregatePoint(0xc2100b7dc0, 0xc210136e48, 0x18, 0x8a9d20, 0xc2101fa440, ...)
    /home/jvshahid/codez/influxdb/src/engine/aggregator.go:69 +0x67
engine.func·010(0xc2101f7640, 0xc2101f7640, 0xc2101f7640)
    /home/jvshahid/codez/influxdb/src/engine/engine.go:327 +0x319
datastore.(*LevelDbDatastore).sendBatch(0xc210081f50, 0xc210050e10, 0xc210020b40, 0xc21016f640, 0x8, ...)
    /home/jvshahid/codez/influxdb/src/datastore/leveldb_datastore.go:919 +0x19a
datastore.(*LevelDbDatastore).executeQueryForSeries(0xc210081f50, 0xc2101f5406, 0x7, 0xc210136e48, 0x18, ...)
    /home/jvshahid/c

pauldix added a commit that referenced this pull request Jan 31, 2014
@pauldix pauldix merged commit b8ba76c into master Jan 31, 2014
@jvshahid jvshahid deleted the fix-223-panic-in-server branch January 31, 2014 20:43
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

Successfully merging this pull request may close these issues.

None yet

2 participants