Bug 1033130
| Summary: | [AS7] Exception during discovery of Query Cache resources of RHQ Server resource | |||
|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Thomas Segismont <tsegismo> | |
| Component: | Plugins | Assignee: | Thomas Segismont <tsegismo> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
| Severity: | low | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.10 | CC: | hrupp, jshaughn, nlarivie | |
| Target Milestone: | --- | |||
| Target Release: | RHQ 4.12 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1107858 (view as bug list) | Environment: | ||
| Last Closed: | 2014-12-15 11:36:14 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: | 1107858 | |||
|
Description
Thomas Segismont
2013-11-21 15:30:15 UTC
This could not happen before the fix for BZ1022409 because the whole "Hibernate Persistence Unit" resource was not discovered. We're hitting the max length for resource keys Fixed in master commit 583c119780e0d69727de6c2a7bd6aaca33b22b69 Author: Thomas Segismont <tsegismo> Date: Thu Nov 28 15:18:06 2013 +0100 Query Cache management nodes have a very long name. So the default discovery class was creating a too long resource key and name. Now there is a dedicated discovery class for Query Cache resources and the resource key and name are just the hash of the query-name attribute. Back to ON_DEV as we figured out that for the RHQ Server resource only, 2000+ Query cache resources are inventoried. The resource type will be commented out until we find a proper solution. commit c7a1bad920666b9aec331441fef7da7d38c5f443 Author: Thomas Segismont <tsegismo> Date: Fri Dec 6 16:25:21 2013 +0100 Fixed in master commit a3480101861ae6aed8f20d9010507602796504cc Author: Thomas Segismont <tsegismo> Date: Thu Jun 12 23:48:37 2014 +0200 Instead of importing tons of Query Cache resources, AS7 plugin will mimic Hibernate Plugin's behavior and expose a "viewQueries" operation to gather the Query Cache nodes statistics. Added HibernatePersistenceUnitComponent to implement "viewQueries" operation. The operation processes Query Cache nodes in batches to avoid sending too many queries to the management interface Deleted the never used QueryCacheDiscovery class (updated API check file accordingly) Removed the commented-out Query Cache service in AS7 plugin descriptor and added the "viewQueries" operation on the Hibernate Persistence Unit service Added itest for the "viewQueries" operation Bulk close of items fixed in RHQ 4.12 If you think this is not solved, then please open a *new* BZ and link to this one. |