Bug 1028624 - Measurement data points can be supplied to condition processing in different order than generated on agent
Summary: Measurement data points can be supplied to condition processing in different ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Alerts, Core Server
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: RHQ 4.10
Assignee: John Sanda
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 1028623
TreeView+ depends on / blocked
 
Reported: 2013-11-08 21:44 UTC by Lukas Krejci
Modified: 2014-04-23 12:30 UTC (History)
2 users (show)

Fixed In Version:
Clone Of: 1028623
Environment:
Last Closed: 2014-04-23 12:30:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Lukas Krejci 2013-11-08 21:44:22 UTC
+++ This bug was initially created as a clone of Bug #1028623 +++

Description of problem:
When measurement data comes in to the server, the alert condition processing relies on the order to be strictly the same as generated on the agent side. I.e. no datapoint should be processed before another that was detected prior to it.

The persistence to the Cassandra storage node is asynchronous and done on datapoint-by-datapoint basis. This means that the datapoints can be persisted in different order than the original order.

When supplying the data to alert condition processing, we use the order of datapoints in which they were persisted, not the one they were created on the agent.

This can lead to subtle bugs in alerting like false positive or negative dampening events.

Version-Release number of selected component (if applicable):
JON 3.2.0.ER4

How reproducible:
hardly, can be best seen in debugger

Steps to Reproduce:
1. Have a server, agent and some enabled metric schedules for some inventoried resources
2. Once a measurement report comes in, check the order of elements in the input parameter of the MeasurementDataManagerBean#addNumericData() method.
3. Check the order of elements of the data passed to the condition processing in the onFinish() callback inside addNumericData()

Actual results:
The order sometimes differ, depending on the order cassandra cluster happened to store the events

Expected results:
The order of elements passed to the condition processing should be the same as the one coming from agents.

Additional info:

Comment 1 John Sanda 2013-11-09 23:11:01 UTC
I have updated MeasurementDataManagerBean.addNumericData to ensure data is ordered by timestamp.

master commit hash: 1e3cf0f4ea0

Comment 2 Heiko W. Rupp 2014-04-23 12:30:00 UTC
Bulk closing of 4.10 issues.

If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.


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