You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2017/11/21 17:18:00 UTC
[jira] [Commented] (RATIS-152) Fix jmx registration warning in
Ozone unit tests.
[ https://issues.apache.org/jira/browse/RATIS-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16261084#comment-16261084 ]
Tsz Wo Nicholas Sze commented on RATIS-152:
-------------------------------------------
This may be already fixed by RATIS-119.
> Fix jmx registration warning in Ozone unit tests.
> -------------------------------------------------
>
> Key: RATIS-152
> URL: https://issues.apache.org/jira/browse/RATIS-152
> Project: Ratis
> Issue Type: Bug
> Reporter: Mukul Kumar Singh
> Assignee: Mukul Kumar Singh
>
> Ratis server on Ozone unit test using MiniOzoneCluster throws the following error because of failure to register jmx. This happens because jmx's are registered in a static context.
> {code}
> 2017-11-21 15:36:40,601 [Datanode State Machine Thread - 0] ERROR impl.RaftServerImpl (RaftServerImpl.java:registerMBean(182)) - RaftServer JMX bean can't be registered
> javax.management.InstanceAlreadyExistsException: Ratis:service=RaftServer,group=group-414F5A4F-4E45-5241-5449-5347524F5550,id=127.0.0.1_61259
> 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.ratis.server.impl.RaftServerImpl.registerMBean(RaftServerImpl.java:180)
> at org.apache.ratis.server.impl.RaftServerImpl.start(RaftServerImpl.java:171)
> at org.apache.ratis.util.JavaUtils.getAndConsume(JavaUtils.java:67)
> at org.apache.ratis.server.impl.RaftServerProxy.start(RaftServerProxy.java:123)
> at org.apache.hadoop.ozone.container.common.transport.server.ratis.XceiverServerRatis.start(XceiverServerRatis.java:143)
> at org.apache.hadoop.ozone.container.ozoneimpl.OzoneContainer.start(OzoneContainer.java:132)
> at org.apache.hadoop.ozone.container.common.statemachine.DatanodeStateMachine.start(DatanodeStateMachine.java:126)
> at org.apache.hadoop.ozone.container.common.statemachine.DatanodeStateMachine.lambda$startDaemon$0(DatanodeStateMachine.java:281)
> at java.lang.Thread.run(Thread.java:745)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)