[ 
https://issues.apache.org/jira/browse/RATIS-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16198911#comment-16198911
 ] 

Tsz Wo Nicholas Sze commented on RATIS-119:
-------------------------------------------

Indeed, there is a [ObjectName.quote(s) 
method|https://docs.oracle.com/javase/7/docs/api/javax/management/ObjectName.html#quote(java.lang.String)].
  We should just use it.

> 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
>
> [~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)

Reply via email to