Bug 1168255 - WARN message " Getting metric [cacheLoaderStores] at [...] failed: JBAS014792: Unknown attribute cacheLoaderStores, rolled-back=true" is logged in the JON Agent log file
Summary: WARN message " Getting metric [cacheLoaderStores] at [...] failed: JBAS014792...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: JON Plugin
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER1
: 6.4.1
Assignee: William Burns
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: 1168258 1186543 1199307 1276000
TreeView+ depends on / blocked
 
Reported: 2014-11-26 14:14 UTC by bkramer
Modified: 2019-08-15 04:06 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1199307 (view as bug list)
Environment:
Last Closed: 2015-04-02 12:13:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-5272 0 Major Resolved Getting metric [cacheLoaderStores] at [...] failed: JBAS014792: Unknown attribute cacheLoaderStores, rolled-back=true" i... 2016-05-20 14:18:49 UTC
Red Hat Knowledge Base (Solution) 1235593 0 None None None Never

Description bkramer 2014-11-26 14:14:46 UTC
Description of problem:

When metric "[CacheStore] Number of cache store stores" is enabled in JBoss ON, WARN message like
*****************
2014-10-16 14:06:09,998 WARN  [ResourceContainer.invoker.daemon-6451] (com.jboss.datagrid.rhq.IspnCacheComponent)- Getting metric [cacheLoaderStores] at [ Address{path: subsystem=infinispan,cache-container=clustered,distributed-cache=Item}] failed: JBAS014792: Unknown attribute cacheLoaderStores, rolled-back=true
*****************
is logged in the agent.log file every X minutes where X is the collection period for above metric.

Version-Release number of selected component (if applicable):
JBoss ON 3.2.2
JDK 6.2

How reproducible:
Always

Steps to Reproduce:
1. JDG started invoking $JDG-HOME/bin/clustered.sh script
2. enabled [CacheStore] Number of cache store stores metric:

    JBoss ON UI -> JBossAS7 Standalone Servers -> JDG ... -> infinispan -> Cache Containers -> clustered -> Caches.


Expected results:
No WARN is logged and enabled metric is properly shown in the JBoss ON UI.

Additional info:

Comment 1 dereed 2014-11-26 21:34:12 UTC
JDG does have a "cache-loader-stores" attribute available in the management subsystem.

But its rhq-plugin.xml has:

                <metric property="cacheLoaderStores" displayName="[CacheStore] Number of cache store stores"
                        displayType="detail" units="none" dataType="measurement"
                        description="Number of entries stored in the cache stores"/>

I'm assuming the properties in rhq-plugin.xml are supposed to match what's in the JDG management subsystem?

A lot of the other properties in rhq-plugin.xml are similar (do not match the actual subsystem).

Comment 3 Larry O'Leary 2015-01-06 00:22:37 UTC
Moving to Data Grid as this issue is in the JDG management plug-in.

As indicated in comment 1 the issue here seems to be that the plug-in descriptor is using the wrong property name for these metrics. The plug-in should either be updated to have its getValues method properly map the legacy metric property names to the attribute name exposed by the cache module in the management API or the plug-in descriptor should be updated to use the correct attribute names as the property name.

Normally you can not change a metric name in an existing plug-in descriptor without breaking the plug-in. However, if these properties never existed in previous versions of JDG, then there will be no data corruption if the property name is changed. However, if these metrics ever used the name that is defined in the current plug-in, changing them will corrupt existing management inventory that used the "legacy" name. For example, if cache-loader-stores used to be, cacheLoaderStores, changing the metric property from cacheLoaderStores to cache-loader-stores will result in loss of data and possibly failure to reconcile any monitoring data for the plug-in. In this case, the only option is to map the metric names within the getValues method of the resource component.

Comment 5 William Burns 2015-03-05 19:03:35 UTC
I can confirm this is an issue that the MetricsRemappingComponent class (performs the remapping that Larry was alluding to) is missing a single line to map cache-loader-stores metric of the cache to the cacheLoaderStores metric on the RHQ plugin.xml.

Comment 7 Tomas Sykora 2015-03-13 18:13:39 UTC
I am verifying that warning messages of a given type are not present in agent.log file while monitoring JDG 6.4.1 ER1.

Thank you Will for a fix!


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