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

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

[~av] [~baranoveg] Thanks for review!

> [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
>             Fix For: 2.19
>
>          Time Spent: 50m
>  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