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/10/24 21:11:01 UTC

[jira] [Resolved] (RATIS-119) RaftServerImpl.registerMBean may throw MalformedObjectNameException

     [ https://issues.apache.org/jira/browse/RATIS-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo Nicholas Sze resolved RATIS-119.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.2.0-alpha

I have committed this.

> RaftServerImpl.registerMBean may throw MalformedObjectNameException
> -------------------------------------------------------------------
>
>                 Key: RATIS-119
>                 URL: https://issues.apache.org/jira/browse/RATIS-119
>             Project: Ratis
>          Issue Type: Bug
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Minor
>             Fix For: 0.2.0-alpha
>
>         Attachments: r119_20171018.patch, r119_20171019.patch, r119_20171024.patch
>
>
> [~linyiqun] has reported that RaftServerImpl.registerMBean may throw MalformedObjectNameException in HDFS-12593.
> {code}
> 2017-10-10 14:50:01,163 [Datanode State Machine Thread - 0] ERROR impl.RaftServerImpl (RaftServerImpl.java:registerMBean(182)) - RaftServer JMX bean can't be registered
> javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
> 	at javax.management.ObjectName.construct(ObjectName.java:618)
> 	at javax.management.ObjectName.<init>(ObjectName.java:1382)
> 	at org.apache.ratis.server.impl.RaftServerImpl.registerMBean(RaftServerImpl.java:179)
> 	...
> 	at org.apache.hadoop.ozone.container.common.statemachine.DatanodeStateMachine.start(DatanodeStateMachine.java:126)
> 	at org.apache.hadoop.ozone.container.common.statemachine.DatanodeStateMachine.lambda$0(DatanodeStateMachine.java:280)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}
> This is probably due to HDFS using host:port as raft server id.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)