[ https://issues.apache.org/jira/browse/EAGLE-553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hao Chen resolved EAGLE-553. ---------------------------- Resolution: Fixed > Fix /entities/ timeseries query bug > ----------------------------------- > > Key: EAGLE-553 > URL: https://issues.apache.org/jira/browse/EAGLE-553 > Project: Eagle > Issue Type: Bug > Affects Versions: v0.5.0 > Reporter: Hao Chen > Assignee: Hao Chen > Fix For: v0.5.0 > > > h2. Problem > When querying eagle storage like: > {code}http://localhost:9090/rest/entities?query=GenericMetricService[@site=%22sample%22]%3C@site%3E%7Bmax(value)%7D&metricName=hadoop.cluster.totalmemory&pageSize=100000&startTime=2016-09-19%2006:25:00&endTime=2016-09-19%2008:25:00&intervalmin=5&timeSeries=true{code} > , the expected result should look like: > {code} > { > meta: { > firstTimestamp: 1474273440000, > totalResults: 1, > lastTimestamp: 1474266300000, > elapsedms: 1358 > }, > success: true, > obj: [ > { > key: [ > "apollo" > ], > value: [ > [ > 203633792, > 205067904, > 205115648, > 205830912, > 205980160, > 205739392, > 205809792, > 204790400, > 202791040, > 202848768, > 201649152, > 198402176, > 198410496, > 201081088, > 202256128, > 203858304, > 202554624, > 200818304, > 203813248, > 203441536, > 205401472, > 206122368, > 205884416, > 206158976 > ] > ] > } > ], > type: "java.util.Map" > } > {code}, > but actual is: > {code} > { > meta: { > firstTimestamp: 1474273440000, > totalResults: 1, > lastTimestamp: 1474266300000, > elapsedms: 9 > }, > success: true, > obj: [ > { > key: [ > "apollo" > ], > value: [ > [ > 206158976 > ] > ] > } > ], > type: "java.util.Map" > {code} > h2. Root Cause > Wrongly calculated milliseconds by > {code} > aggregateCondition.getIntervalMS() * 60 * 1000 > {code} > should be > {code} > aggregateCondition.getIntervalMS() > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)