Bug 1276000 - WARN messages "Getting metric ["xxx"] at [...] failed: JBAS014792: Unknown attribute "yyy", rolled-back=true" is logged in the JON Agent log file
WARN messages "Getting metric ["xxx"] at [...] failed: JBAS014792: Unknown at...
Status: CLOSED DUPLICATE of bug 1276035
Product: JBoss Data Grid 6
Classification: JBoss
Component: JON Plugin (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: 6.6.0
Assigned To: Tristan Tarrant
Martin Gencur
Depends On: 1168255
  Show dependency treegraph
Reported: 2015-10-28 06:54 EDT by bkramer
Modified: 2016-01-22 09:30 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-01-22 09:27:22 EST
Type: Bug
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 ISPN-5901 Major Resolved Metrics not registered for local caches 2016-05-20 10:21 EDT
Red Hat Knowledge Base (Solution) 1235593 None None None Never

  None (edit)
Description bkramer 2015-10-28 06:54:04 EDT
Description of problem:

Monitoring JDG 6.5.1 using JBoss ON 3.3.3 (with the latest version of JDG plugin for JBoss ON (Data Grid Management Plug-in Pack Update-03 for JBoss ON 3.3 [1]) fails and WARN messages like the following are logged in the agent.log file:

2015-10-28 10:28:31,197 WARN  [ResourceContainer.invoker.daemon-9] (org.infinispan.server.rhq.IspnCacheComponent)- Getting metric [hitRatio] at [ Address{path: subsystem=infinispan,cache-container=local,local-cache=default}] failed: JBAS014792: Unknown attribute hit-ratio, rolled-back=true

Here is complete list of metrics whose collection fails with the same WARN message as above: 

hitRatio                Unknown attribute hit-ratio, rolled-back=true
readWriteRatio          Unknown attribute read-write-ratio, rolled-back=true
replicationCount        Unknown attribute replication-count, rolled-back=true
timeSinceReset          Unknown attribute time-since-reset, rolled-back=true
commits                 Unknown attribute commits, rolled-back=true
rollbacks               Unknown attribute rollbacks, rolled-back=true
averageReplicationTime  Unknown attribute average-replication-time, rolled-back=true
successRatio            Unknown attribute success-ratio, rolled-back=true
removeHits              Unknown attribute remove-hits, rolled-back=true
evictions               Unknown attribute evictions, rolled-back=true
removeMisses            Unknown attribute remove-misses, rolled-back=true
prepares                Unknown attribute prepares, rolled-back=true
averageReadTime         Unknown attribute average-read-time, rolled-back=true
elapsedTime             Unknown attribute elapsed-time, rolled-back=true
hits                    Unknown attribute hits, rolled-back=true
replicationFailures     Unknown attribute replication-failures, rolled-back=true
misses                  Unknown attribute misses, rolled-back=true
stores                  Unknown attribute stores, rolled-back=true
numberOfEntries         Unknown attribute number-of-entries, rolled-back=true
averageWriteTime        Unknown attribute average-write-time, rolled-back=true
averageRemoveTime       Unknown attribute average-remove-time, rolled-back=true

If you enable [CasheStore]Number of cache store stores for Cache resource in JBoss ON - the following is logged:

2015-10-28 10:28:31,525 WARN  [ResourceContainer.invoker.daemon-9] (org.infinispan.server.rhq.IspnCacheComponent)- Getting metric [cacheLoaderStores] at [ Address{path: subsystem=infinispan,cache-container=local,local-cache=default}] failed: JBAS014792: Unknown attribute cache-loader-stores, rolled-back=true

Above message previously was logged in https://bugzilla.redhat.com/show_bug.cgi?id=1168255. According to this Bugzilla above is fixed in JDG 6.4.1. However, JDG 6.5.1 still has the same problem. 

Version-Release number of selected component (if applicable):
JDG 6.5.1
JBoss ON 3.3.3
Data Grid Management Plug-in Pack Update-03 for JBoss ON 3.3 [1]

How reproducible:

Steps to Reproduce:
1. JDG started invoking $JDG-HOME/bin/standalone.sh script
2. Navigate to JBoss ON UI -> JDG resource -> infinispan -> Cache Containers -> local -> Caches -> default -> Monitoring -> Metrics
3. Confirm that agent.log file contains WARN messages like above.
4. Navigate to any other tab for this resource (default - Cache) and the same set of WARN messages will be logged.
5. Navigate to Monitoring -> Schedules and enable [CacheStore]Number of cache store stores metrics;
6. Navigate to Monitoring -> Metrics;
7. Confirm that agent.log file contains the same set of WARN messages plus message for cahceLoaderStores.

Actual results:
WARN messages are logged in the agent.log file and metrics in JBoss ON UI show NaN values.

Expected results:
Agent.log file does not contain WARN messages and metrics are properly collected and shown in JBoss ON UI.

Additional info:
[1] https://access.redhat.com/jbossnetwork/restricted/softwareDownload.html?softwareId=39403
Comment 4 Tristan Tarrant 2015-10-30 09:00:33 EDT
The issue here is that we really only test with shared-state caches (replicated/distributed) in client/server mode and that's why this bug went unnoticed.
Comment 5 Martin Gencur 2015-10-30 11:22:21 EDT
Sorry Tristan but I have to correct you. This bug was reported a long time ago: https://bugzilla.redhat.com/show_bug.cgi?id=1181252 So BZ1276000 is actually a duplicate of 1181252. It was decided not to fix this in JDG 6.4 and was re-scheduled to JDG 6.6. See comments in BZ1181252.
Comment 9 Tristan Tarrant 2016-01-22 09:27:22 EST
This is fixed in

*** This bug has been marked as a duplicate of bug 1276035 ***

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