Bug 809626 - [as7] a bunch of metrics on domain-mode 'Transactions Subsystem' Resources return null values
Summary: [as7] a bunch of metrics on domain-mode 'Transactions Subsystem' Resources re...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: JON 3.1.0
Assignee: Libor Zoubek
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On: 811525
Blocks: as7-plugin
TreeView+ depends on / blocked
 
Reported: 2012-04-03 20:25 UTC by Ian Springer
Modified: 2015-11-02 00:42 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-05 16:29:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Springer 2012-04-03 20:25:35 UTC
Here's the metrics that return null values:

[number-of-nested-transactions, number-of-timed-out-transactions, number-of-committed-transactions, number-of-transactions, number-of-heuristics, number-of-aborted-transactions, number-of-inflight-transactions, number-of-application-rollbacks, number-of-resource-rollbacks]

Comment 1 Ian Springer 2012-04-03 20:25:52 UTC
From Heiko:

Those are present in standalone mode :

[standalone@localhost:9999 subsystem=transactions] :read-resource(include-runtime=true)
{
    "outcome" => "success",
    "result" => {
        "default-timeout" => 300,
        "enable-statistics" => false,
        "enable-tsm-status" => false,
        "jts" => false,
        "node-identifier" => "1",
        "number-of-aborted-transactions" => 0L,
        "number-of-application-rollbacks" => 0L,
        "number-of-committed-transactions" => 0L,
        "number-of-heuristics" => 0L,
        "number-of-inflight-transactions" => 0L,
        "number-of-nested-transactions" => 0L,
        "number-of-resource-rollbacks" => 0L,
        "number-of-timed-out-transactions" => 0L,
        "number-of-transactions" => 0L,
        "object-store-path" => "tx-object-store",
        "object-store-relative-to" => "jboss.server.data.dir",
        "path" => "var",

I think they may be failing in domain mode because you do not get the stats on the 
HC level (AS7 can't do that), but those have to be grabbed at managed server
level:

[domain@localhost:9999 subsystem=transactions] :read-resource(include-runtime=true)                    
{
    "outcome" => "success",
    "result" => {
        "default-timeout" => 300,
        "enable-statistics" => false,
        "enable-tsm-status" => false,
        "jts" => false,
        "node-identifier" => "1",
        "number-of-aborted-transactions" => 0L,
        "number-of-application-rollbacks" => 0L,
....
        "status-socket-binding" => "txn-status-manager"
    }
}
[domain@localhost:9999 subsystem=transactions] pwd
/host=master/server=server-one/subsystem=transactions

Comment 2 Stefan Negrea 2012-04-09 21:31:22 UTC
This is a complicated one. The managed and standalone servers have the properties and the metrics. Whereas the domain server has only the properties but not the metrics. 

One solution would be to define two Transactions subsystem. One for the domain mode (and leave the metrics out) and the other for the managed and standalone mode and have the metrics. The only problem with this approach is configuration duplication since the properties exposed are identical.

Comment 3 Stefan Negrea 2012-04-10 15:06:27 UTC
Split transactions subsystem configuration into three services based on server profile. This was the only options since conditionals are not allowed in the plugin descriptor.


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