curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shevek (JIRA)" <>
Subject [jira] [Commented] (CURATOR-10) NPE from JMX infrastructure in curator-test
Date Tue, 02 Apr 2013 21:07:17 GMT


Shevek commented on CURATOR-10:

Proposed solution: ByteCodeRewrite patches out MBeanRegistry.getInstance().register() and
unregister() instead of ZooKeeperServer.registerJMX().
> NPE from JMX infrastructure in curator-test
> -------------------------------------------
>                 Key: CURATOR-10
>                 URL:
>             Project: Apache Curator
>          Issue Type: Bug
>            Reporter: Shevek
>            Assignee: Jordan Zimmerman
> contains this:
> finally { MBeanRegistry.getInstance().unregisterAll(); }
> Since MBeanRegistry is static, this unregisters all MBeans from ALL QuorumPeers in a
> This causes:
> [ERROR] NIOServerCnxnFactory - Thread Thread[QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:41733,5,main]
died <java.lang.AssertionError>java.lang.AssertionError
>         at org.apache.zookeeper.jmx.MBeanRegistry.register(
>         at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(
>         at
> and similar when connecting a new client to a server after killing another in a test
> Looking for a workaround, but bringing this to your attention early.
> Note: Code against ZK 3.5.x library, although that unregisterAll() call seems to predate
that by a long way, so this is presumably valid throughout?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message