Description of problem: Can't get cache statistics if the server has 2 caches and the name of one cache is a substring of the other cache name. e.g. "default" and "default1" Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. start JDG container with custom caches, so one cache name is a substring of the second cache name 2. create a remote MBean 3. call some cache statistic e.g. remote.cache.getAverageReadTime(); Actual results: java.lang.RuntimeException: Could not get cache statistics: AverageReadTime at org.infinispan.arquillian.utils.MBeanUtils.getMBeanNamesByKeyValuePattern(MBeanUtils.java:113) at org.infinispan.arquillian.utils.MBeanObjectsProvider.getCacheStatisticsMBean(MBeanObjectsProvider.java:107) at org.infinispan.arquillian.model.RemoteInfinispanCache.getStatistics(RemoteInfinispanCache.java:111) at org.infinispan.arquillian.model.RemoteInfinispanCache.getAverageReadTime(RemoteInfinispanCache.java:127) at org.infinispan.server.test.rollingupgrades.HotRodRollingUpgradesIT.testHotRodRollingUpgradesDiffVersions(HotRodRollingUpgradesIT.java:95) Expected results: some number Additional info:
This looks like a bug in Infinispan Arquillian rather than in Infinispan.