+++ This bug was initially created as a clone of Bug #1114199 +++ Description of problem: First I need to define a "late measurement report". The easiest way is with an example. Suppose the current time is 15:00. The data purge job runs and data from 14:00 to 15:00 is aggregated. Let's say that the metrics aggregation finishes at 15:05. The server receives a measurement report at 15:06 that contains timestamps from the 14:00 hour. This is a late measurement report because aggregation has already been run for the time slice of the reported data. That raw data will get persisted, but in general it will not get aggregated, meaning we will not generate 1 hr, 6 hr, and 24 hr metrics for it. I say in general because it is possible through a server restart that the data could get aggregated. We need to handle late data because late measurements are not only possible, they are probably fairly common. Work has already been done in master to address late data. https://docs.jboss.org/author/display/RHQ/Aggregation+Schema+Changes describes the changes. Here is the squash commit in master for the work, commit hash: fabe6f71458 Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
I will help QE with establishing test cases. There are a number of different scenarios that have to be covered. For example, if the 6 hr time slice for late data has already passed, then we need to recalculate the 6 hr aggregate as well as the 1 hr aggregate.
I want to point out that we cannot back port the changes to 3.2.x because there are substantial changes including schema changes. If we want to this in 3.2.x, then we need a separate BZ to track that effort.
The initial work has been available since ER01, but I am setting the target milestone to ER03 because the changes for bug 1135604 and bug 1135630 impact this.
Changes have been pushed to the release/jon3.3.x branch. Commit hashes: 2ee9abb58 26c00149d
Moving to ON_QA as available for test with build: https://brewweb.devel.redhat.com/buildinfo?buildID=388959