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/10 15:23:00 UTC

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

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

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

We should consider the following:
- Print a better error message, e.g. including the malformed object name in the error message.
- Define a server id pattern and disallow the id not following the pattern
- Allow any id and escape/replace the special characters.

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