Hello Gareth,

I am was able to create a test and reproduce the problem. So it is bug that looks related to using ascending order with a limit. I created a JIRA ticket to track the issue:  https://issues.jboss.org/browse/HWKMETRICS-474  . We will most likely push the fix to 0.19.0 branch.

Thanks for reporting the problem!



Thank you,
Stefan Negrea


On Wed, Sep 7, 2016 at 11:04 AM, Gareth Healy <garethahealy@gmail.com> wrote:
I am using hawkular-services 0.11 (metrics 0.19). When i call: GET /hawkular/metrics/strings/{id}/raw i get different responses depending on whether i set the limit or not.
  • limit not set = get data
  • limit set to 5 = get no data
I would of expected to get back the same data, since i only have one data point, so never hit my upper limit of 5. Is this how it works? or have i misunderstood "limit"

Gist logs: 

_______________________________________________
hawkular-dev mailing list
hawkular-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev