-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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.4.1] "ORDER BY DESC" doesn't properly order output #4235
Comments
Might be a caching issue. @jwilder thoughts on this |
I can confirm the behavior. The following queries were run within 20 seconds of each other: For each of the In any event, there is clearly more recent data than the 18:37:28 points, yet that's all the
|
It's not caching, or at least changing the measurement to one I haven't queried ever before still returns the older points:
|
It's interesting that the timestamp doesn't move forward. Some similar symptoms to #4209 although no |
I see the same behaviour. |
possibly related to #4232 |
I have the same problem. It looks like when using DESC, it cannot have the latest data in X minutes but ASC works fine. Here is my test: |
same issue for me
I assume a.b.c.d ip should be on the top |
Pretty sure this is an issue w/ the |
How can I try it? Sorry I'm not familiar with influxdb internals. |
@jwilder Thank you, I saw this info today, but how I can convert my current data into this new format? |
@theromis This is no convertor right now. If you enable the new engine, new data will be written using the the new engine. Existing data will still use the older engines. |
@jwilder Can I switch storage type to edit: |
@theromis No. |
@jwilder updated to 0.9.5 nightly build, but it still showing same result. Should I create new empty database? |
@theromis You're old data will still still show the wrong sorts since it's still stored in the older engine format. New data written to new shards created by the |
@jwilder Thank you, will try it now. |
I observed the same behaviour, it seems as if limit is applied before ordering, so in my case:
returns five oldest points ordered by time in descending order. |
I can reproduce same behavior on Using the nightly build of |
Using nightly Version, commit, built info:
Config file in
CLI-output with erroneous sorting:
|
From what I saw, it works ok, unless new tags gets introduced (see #4077 for details) in a measurement |
Just ran in to this on 0.9.4.1, trying to switch to nightly 0.9.5. One thing I noticed: the link to the line in the config file from this post points to |
It seems like there are nightly builds that can run on OSX; is that right? |
We do not have nightly builds for OSX. |
Thanks, is there an easy way for me to build from source? |
Please read the docs: https://github.com/influxdb/influxdb/blob/master/CONTRIBUTING.md |
Thanks, I built from HEAD and set engine to
So in this thread we have one report (@markcwill here) that |
I am also experiencing the same issue using tsm1. root@db1:/app# influxd version [meta] [data]
|
So it appears to do with when it's a
|
Even without limit and group, the issue is still there and running query with order by is very unreliable. |
@manishjain002 please open a new issue for what you describe, as that is a new, more specific bug. |
@manishjain002 looks like #4235 is for the 0.9.5 |
I'm trying to get the newest n points from a series
The first query correctly shows the latest point:
But the second query is showing 10 points from an earlier time.
The data is coming in every 30 seconds, but I keep getting the exact same resultset from the second query until I restart influxdb, and then it stays at a newer resultset.
The text was updated successfully, but these errors were encountered: