Disabled MBean registration for cache group if IGNITE_MBEANS_DISABLED set to true - Fixes
@@ -621,7 +621,7 @@ public class GridCacheProcessor extends GridProcessorAdapter {
for (Object obj : grp.configuredUserObjects())
cleanup(cfg, obj, false);
- if (!grp.systemCache()) {
+ if (!grp.systemCache() && !U.IGNITE_MBEANS_DISABLED) {
try {
ctx.config().getMBeanServer().unregisterMBean(U.makeMBeanName(ctx.igniteInstanceName(),
CACHE_GRP_METRICS_MBEAN_GRP, grp.cacheOrGroupName()));
@@ -1986,7 +1986,7 @@ public class GridCacheProcessor extends GridProcessorAdapter {
CacheGroupContext old = cacheGrps.put(desc.groupId(), grp);
- if (!grp.systemCache()) {
+ if (!grp.systemCache() && !U.IGNITE_MBEANS_DISABLED) {
try {
U.registerMBean(ctx.config().getMBeanServer(), ctx.igniteInstanceName(), CACHE_GRP_METRICS_MBEAN_GRP,
grp.cacheOrGroupName(), grp.mxBean(), CacheGroupMetricsMXBean.class);
