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

[0.9.1] aggregate functions different from sum and count do not work in CQs #3225

Closed
markuspatrick opened this issue Jul 3, 2015 · 6 comments

Comments

@markuspatrick
Copy link

Still very annoying bug in 0.9.1.
Using aggregate function like max, min , count(distinct()) ,... in CQ Queries still kills influxdb.
See Issues #3171 and #3158

  • Create a CQ with such aggregate functions
  • try insert at least 500 data points (within the interval of the CQ)
  • Insert data results in timeout-error (always 5s timeout - maybe in correlation with issue Allow PointerWriter timeout to be configurable #3218 ?)
  • hard reset of influxdb is required, to work further
@eminden
Copy link

eminden commented Jul 3, 2015

I am having the same, hope to get fixed soon.

@kevinsteger
Copy link

I am experiencing this issue with a SUM CQ on only a few thousand data points. My CQ:

create continuous query profit_1m on traffic BEGIN select sum(value) as value into profit_1m from profit group by time(1m),* END

@beckettsean beckettsean added this to the 0.9.3 milestone Jul 15, 2015
@beckettsean beckettsean modified the milestones: 0.9.4, 0.9.3 Aug 6, 2015
@hiepsikhokhao
Copy link

Hi,

Timeout problem still happens on verision 0.9.6-nightly-9637446. I must always restart influxdb for work arround

[http] 2015/12/07 15:24:34 ::1 - mecdn [07/Dec/2015:15:24:24 +0700] POST /write?db=cdn_raw_log&p=%5BREDACTED%5D&precision=s&u=mecdn HTTP/1.1 500 44 - Ruby ec9d3460-9cbb-11e5-aef9-000000000000 10.002499869s
[http] 2015/12/07 15:24:42 ::1 - mecdn [07/Dec/2015:15:24:32 +0700] POST /write?db=dns_raw_log&p=%5BREDACTED%5D&precision=s&u=mecdn HTTP/1.1 500 44 - Ruby f1628bdc-9cbb-11e5-aefa-000000000000 10.003647506s
[http] 2015/12/07 15:24:54 ::1 - mecdn [07/Dec/2015:15:24:44 +0700] POST /write?db=cdn_raw_log&p=%5BREDACTED%5D&precision=s&u=mecdn HTTP/1.1 500 44 - Ruby f837b259-9cbb-11e5-aefb-000000000000 10.002384296s
[http] 2015/12/07 15:25:27 ::1 - mecdn [07/Dec/2015:15:25:17 +0700] POST /write?db=dns_raw_log&p=%5BREDACTED%5D&precision=s&u=mecdn HTTP/1.1 500 44 - Ruby 0c24327c-9cbc-11e5-aefc-000000000000 10.003236462s

@beckettsean
Copy link
Contributor

@hiepsikhokhao your report does not look like it is related to Continuous Queries, as the write timeouts are coming from a Ruby client.

@hiepsikhokhao
Copy link

HI @beckettsean ,

Yes, i use fluent-plugin-influxdb. i use influxdb to store nginx access log & use CQ to calculate.
To keep point not be overwritten , i add a random number as tags. This makes Influxdb performance too bad so i try another way ( calculate data first, then push to Influxdb, not use CQ ) . And now everything's good. Thanks

@jsternberg
Copy link
Contributor

This bug was filed against the old query engine. Since we have completely changed the query engine since then, please try again with the latest InfluxDB. If this is still an issue, please reopen this issue.

Thanks!

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

No branches or pull requests

6 participants