Bug 786161 - [jboss-as-5 plugin] Add datasource availability as a trait
[jboss-as-5 plugin] Add datasource availability as a trait
Product: RHQ Project
Classification: Other
Component: Plugins (Show other bugs)
Unspecified Unspecified
high Severity high (vote)
: ---
: JON 3.1.0
Assigned To: Larry O'Leary
Mike Foley
Depends On:
Blocks: jon310-sprint11/rhq44-sprint11 791364
  Show dependency treegraph
Reported: 2012-01-31 10:57 EST by Charles Crouch
Modified: 2015-02-01 18:27 EST (History)
6 users (show)

See Also:
Fixed In Version: 4.3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 791364 (view as bug list)
Last Closed: 2013-03-14 11:06:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker PRODMGT-75 Major Closed Availability for Datasource resource of JBoss AS resource should reflect the result of testConnection 2013-08-16 09:16:08 EDT

  None (edit)
Description Charles Crouch 2012-01-31 10:57:17 EST
This BZ is aimed at implementing part of https://issues.jboss.org/browse/PRODMGT-75

The issue with making availability return the result of the testConnection method is that this would be a heavy weight call (at least in comparison to the usual mbean, profile service checks) that will also use up a database connection every 30seconds, when the availability check is made. It would also return false, showing false down, if the avail check ran when all connections in the pool were in use, and the testConnection method failed.

Instead we should investigate adding a trait, to the various JBAS related datasource resources types, that would be either true/false based on the result of testConnection. A description could be provided on the trait as to how the various scenarios mapped to true/false. This has the advantage over telling the user to create a scheduled operation to call the testConnection method that it could be enabled out of the box, requiring no user setup.
Comment 2 Ian Springer 2012-02-16 15:31:04 EST
This is done for the as5 plugin:


A new trait called "Connection Available?" has been added to all five of the datasource and connection factory ResourceTypes. The trait will have a value of "yes" or "no" depending on whether the call to testConnection() returned true or false. By default, the trait will be collected every 15 minutes.

I'll clone this BZ, so we have a separate issue for the equivalent enhancement to the as7 plugin.
Comment 4 bkramer 2012-05-14 11:27:24 EDT
Installed EAP 5.1 server and verified that "Connection Available" trait is available (values *yes* and *no*) with the *Last Changed* column that reflects when this trait was last changed from one value to another.

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