Maksim Davydov created IGNITE-29049:
---------------------------------------
Summary: [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
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)