[ 
https://issues.apache.org/jira/browse/IGNITE-29049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18113866#comment-18113866
 ] 

Maksim Davydov commented on IGNITE-29049:
-----------------------------------------

https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_CheckCodeStyleDucktests?branch=pull%2F13575%2Fhead#all-projects


> [ducktests] Fix the JMX metric registry MBean lookup
> ----------------------------------------------------
>
>                 Key: IGNITE-29049
>                 URL: https://issues.apache.org/jira/browse/IGNITE-29049
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Maksim Davydov
>            Assignee: Maksim Davydov
>            Priority: Minor
>              Labels: ducktests, ise
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The MBean name of a metric registry is spelled out at every call site, and 
> two of
> those patterns are wrong:
> * the rebalance metrics use '.*group=cacheGroups.*name="%s"', which requires 
> the
>   quotes unconditionally - the JMX exporter omits them for a purely 
> alphanumeric
>   name, so the registry of such a cache group is not found at all;
> * no pattern is anchored, so a registry whose name is a prefix of another one
>   ("myCache" against "myCacheV2") answers with the wrong bean.
> Put the pattern in one place (metric_registry_pattern), add 
> value()/bool_value()
> for reading a single valued attribute, and cover both cases with a check.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to