Bug 568544
Summary: | Alerts, alert history lists duplicate alerts. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | wes hayutin <whayutin> | ||||||||||
Component: | Alerts | Assignee: | Lukas Krejci <lkrejci> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> | ||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | high | ||||||||||||
Version: | 3.0.0 | CC: | bkearney, ckannan | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | All | ||||||||||||
OS: | Linux | ||||||||||||
URL: | http://10.16.120.51:7080/rhq/subsystem/alertHistory.xhtml | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | 2.4 | Doc Type: | Bug Fix | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2010-08-12 16:47:55 UTC | Type: | --- | ||||||||||
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: | 565617 | ||||||||||||
Attachments: |
|
Description
wes hayutin
2010-02-25 23:12:03 UTC
Created attachment 396425 [details]
ss02
duplication also happens on the definition list in the subsystems view. Created attachment 396561 [details]
screenshot of debugger variables
Lukas, this is a result of the resource name shortening effort. In org.rhq.enterprise.gui.common.paging.ResourceNameDisambiguatingPagedListDataModel#fetchPage() data is ok (2 different alerts), but the call to resourceManager.disambiguate(data, alwaysIncludeParents, getResourceIdExtractor()); returns duplicates disambiguation.resoultion[*].original contains one of the two original data items See attached screen shot. Something similar happens for alert definition history (except that not all entries are the same, but dups appear too). This is because the disambiguate() method wrongly assumes that each item in the provided results correspond to a different resource (or none at all). In case of alerts, multiple alerts can be triggered from a single resource and thus violate that assumption. Commit 8a0951a fixes this. verified.. alerts now have unique names Created attachment 398906 [details]
ss
moving verified bugs to rhq_sprint06, and removing from rhq_chainsaw Mass-closure of verified bugs against JON. |