Bug 663343 - [ Cli/Server ] not more than 60 datapoints can be returned from MDM.findDataForResource()
Summary: [ Cli/Server ] not more than 60 datapoints can be returned from MDM.findDataF...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-15 13:43 UTC by Heiko W. Rupp
Modified: 2014-07-01 14:14 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-01 14:14:45 UTC
Embargoed:


Attachments (Terms of Use)

Description Heiko W. Rupp 2010-12-15 13:43:05 UTC
org.rhq.enterprise.server.measurement.MeasurementDataManagerBean#findDataForResource()
offers (also on the remote interface to the CLI ) to specify a number of datapoints.
But doing so only works correctly when #datapoints = 60

This comes from calling into
org.rhq.enterprise.server.measurement.util.MeasurementDataManagerUtility#getMeasurementDataAggregatesForContext
then 
org.rhq.enterprise.server.measurement.util.MeasurementDataManagerUtility#getFullQuery

where the SQL is constructed

        + "   ) data GROUP BY timestamp) \n"
            + "   UNION ALL (select ? + (? * i) as timestamp, null as av, null as peak, null as low from RHQ_numbers where i < ?) ) alldata \n"


but RHQ_numbers only has 60 rows

Comment 2 Jay Shaughnessy 2014-07-01 14:14:45 UTC
No longer true using StorageNode/Cassandra


Note You need to log in before you can comment on or make changes to this bug.