Bug 1009666
Summary: | Not all event sources are being polled by the agent | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> | ||||
Component: | Monitoring - Events | Assignee: | John Sanda <jsanda> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | JON 3.1.2, JON 3.2 | CC: | jsanda, mkoci | ||||
Target Milestone: | ER02 | Keywords: | NeedsTestCase | ||||
Target Release: | JON 3.2.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1009699 (view as bug list) | Environment: | |||||
Last Closed: | 2014-01-02 20:35:13 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1009699 | ||||||
Attachments: |
|
Description
Larry O'Leary
2013-09-18 20:02:04 UTC
jsanda did some digging into this and this appears to be the result of a Map being used instead of a List when the callback listeners are registered on agent startup: org.rhq.core.pc.PluginContainer.addInitializationListener is invoked by org.rhq.core.pc.event.EventContextImpl.registerEventPollerInternal using the EventContextImpl class name as the listener name. Because a Map is used in the underlying implementation only one event poller can be registered. Originally, org.rhq.core.pc.PluginContainer.initListeners was of type List but in commit https://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=93c0e5f42426e4955b07cc66be8feab7e0e39c73 this was changed to Map. This is a pretty nasty bug that essentially means that only one log source can be monitored per agent once the agent is restarted. I have pushed the fix to the bug/1009666 branch. As soon as I get the go ahead, I will merge this into master. https://git.fedorahosted.org/cgit/rhq/rhq.git/log/?h=bug/1009666 Changes have been merged to master. master commit hash: 3843704e61a4 Bug verified. For all 11 log sources were displayed events (see screenshot - contains only a few different sources). Events were created the same way also after restarting the agent. Created attachment 806345 [details]
Displayed events from different sources.
|