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.5] Query returning values for ORDER BY ASC but not ORDER BY DESC #5225

Closed
jlark opened this issue Dec 26, 2015 · 5 comments
Closed

[0.9.5] Query returning values for ORDER BY ASC but not ORDER BY DESC #5225

jlark opened this issue Dec 26, 2015 · 5 comments

Comments

@jlark
Copy link

jlark commented Dec 26, 2015

I'm running into some problems where the latest data I'm pushing to Influx is not appearing in queries.
While debugging the issue I'm running the query

SELECT "value" FROM "battery_voltage" WHERE time > now() - 6h ORDER BY time ASC

Which returns values fine. However the query:
SELECT "value" FROM "battery_voltage" WHERE time > now() - 6h ORDER BY time DESC

returns 0 values.

The expected behavior would be to get the values sorted in the opposite order.

@jlark
Copy link
Author

jlark commented Dec 26, 2015

Another interesting result. This query is returning results from 6 days ago

SELECT "value" FROM "pv_production" ORDER BY time DESC LIMIT 10
2015-12-20T23:59:17Z is the top value

But Bizarly when again I rerun the same query with ORDER BY time ASC without a limit.
If I look down at the values I see data points from this morning!
2015-12-26T08:41:09Z 708.358

Having a hard time understanding what's going on.

@beckettsean
Copy link
Contributor

@jlark what version of the database?

@jlark
Copy link
Author

jlark commented Dec 29, 2015

I'm sorry should have mentioned it.

v0.9.5 @beckettsean

Alp

@beckettsean beckettsean changed the title Query returning values for ORDER BY ASC but not ORDER BY DESC [0.9.5] Query returning values for ORDER BY ASC but not ORDER BY DESC Dec 30, 2015
@beckettsean
Copy link
Contributor

@jlark any chance you are running a cluster?

Do you always get the same result for the ORDER BY DESC queries, or do they eventually "catch up" with new data points?

This is a duplicate of #4944, which I found when researching #4235, an issue that was fixed in 0.9.5.

@corylanou there are now two reports of ORDER BY DESC missing values.

@jlark
Copy link
Author

jlark commented Dec 30, 2015

Hi All,
No not running a cluster single instance. Also I'm only pushing around 20 measurements in with 5 minute intervals so it's not a a lot of data going in.

I just re ran the query

SELECT "value" FROM "pv_production" ORDER BY time DESC LIMIT 10
2015-12-27T23:57:29Z is the top value

So it's catching up but it's still 3 days behind.

Could this be a low memory issue. I'm running on a small vm and did have influx crash due to an out of memory exception yesterday.

Alp

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

2 participants