Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> ZooKeeper 3.4.3: Failed to unregister with JMX


Copy link to this message
-
ZooKeeper 3.4.3: Failed to unregister with JMX
Hi,

I'm using 3.4.3 in "embedded" mode (i.e. zookeeper is sharing jvm with
some other app). I got this warning when I called
QuorumPeer.shutdown().

2012-07-25 16:11:55,003 142220 [QuorumPeer[myid=0]/127.0.0.1:2900]
WARN org.apache.zookeeper.server.ZooKeeperServer  - Failed to
unregister with JMX
java.lang.IllegalMonitorStateException
        at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:398)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1340)
        at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:778)
        at com.sun.jmx.mbeanserver.Repository.retrieve(Repository.java:522)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1111)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:433)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:421)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:540)
        at org.apache.zookeeper.jmx.MBeanRegistry.unregister(MBeanRegistry.java:115)
        at org.apache.zookeeper.jmx.MBeanRegistry.unregister(MBeanRegistry.java:132)
        at org.apache.zookeeper.server.quorum.LearnerZooKeeperServer.unregisterJMX(LearnerZooKeeperServer.java:138)
        at org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:100)
        at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:740)

Has anybody seen a trace like this before? It looks like
ReentrantReadWriteLock.ReadLock.unlock() failed, but I wasn't sure
why...

Thanks!
--Michi
+
César Álvarez Núñez 2012-07-29, 11:22
+
Michi Mutsuzaki 2012-07-30, 05:42