Tamas Payer created AMBARI-25635:
------------------------------------
Summary: Clear Cluster and METRIC_AGGREGATORS MBeans upon shutdown
Key: AMBARI-25635
URL: https://issues.apache.org/jira/browse/AMBARI-25635
Project: Ambari
Issue Type: Bug
Components: ambari-metrics
Affects Versions: 2.7.4, 2.7.5
Reporter: Tamas Payer
Fix For: 2.7.6
j
{code:java}
avax.management.InstanceAlreadyExistsException: ClusterStatus:
cluster=ambari-metrics-cluster,instanceName=ctr-e153-1613480641811-87570-01-000057.hwx.site_12001
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
at
org.apache.helix.monitoring.mbeans.ClusterStatusMonitor.register(ClusterStatusMonitor.java:172)
at
org.apache.helix.monitoring.mbeans.ClusterStatusMonitor.registerInstances(ClusterStatusMonitor.java:498)
at
org.apache.helix.monitoring.mbeans.ClusterStatusMonitor.setClusterInstanceStatus(ClusterStatusMonitor.java:220)
at
org.apache.helix.controller.stages.ReadClusterDataStage.process(ReadClusterDataStage.java:91)
at org.apache.helix.controller.pipeline.Pipeline.handle(Pipeline.java:48)
at
org.apache.helix.controller.GenericHelixController.handleEvent(GenericHelixController.java:295)
at
org.apache.helix.controller.GenericHelixController$ClusterEventProcessor.run(GenericHelixController.java:595)
{code}
and
{code:java}
2021-03-09 23:15:53,450 INFO
org.apache.helix.monitoring.mbeans.ClusterStatusMonitor: Register MBean:
ClusterStatus:
cluster=ambari-metrics-cluster,instanceName=ctr-e153-1613480641811-87570-01-000057.hwx.site_12001,resourceName=METRIC_AGGREGATORS
2021-03-09 23:15:53,450 INFO
org.apache.helix.monitoring.mbeans.ClusterStatusMonitor: Register MBean:
ClusterStatus:
cluster=ambari-metrics-cluster,instanceName=ctr-e153-1613480641811-87570-01-000057.hwx.site_12001,resourceName=METRIC_AGGREGATORS
2021-03-09 23:15:53,450 WARN
org.apache.helix.monitoring.mbeans.ClusterStatusMonitor: Could not register
MBean: ClusterStatus:
cluster=ambari-metrics-cluster,instanceName=ctr-e153-1613480641811-87570-01-000057.hwx.site_12001,resourceName=METRIC_AGGREGATORS
javax.management.InstanceAlreadyExistsException: ClusterStatus:
cluster=ambari-metrics-cluster,instanceName=ctr-e153-1613480641811-87570-01-000057.hwx.site_12001,resourceName=METRIC_AGGREGATORS
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
at
org.apache.helix.monitoring.mbeans.ClusterStatusMonitor.register(ClusterStatusMonitor.java:172)
at
org.apache.helix.monitoring.mbeans.ClusterStatusMonitor.registerPerInstanceResources(ClusterStatusMonitor.java:537)
at
org.apache.helix.monitoring.mbeans.ClusterStatusMonitor.setPerInstanceResourceStatus(ClusterStatusMonitor.java:307)
at
org.apache.helix.controller.stages.BestPossibleStateCalcStage.process(BestPossibleStateCalcStage.java:74)
at
org.apache.helix.controller.pipeline.Pipeline.handle(Pipeline.java:48)
at
org.apache.helix.controller.GenericHelixController.handleEvent(GenericHelixController.java:295)
at
org.apache.helix.controller.GenericHelixController$ClusterEventProcessor.run(GenericHelixController.java:595)
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)