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

Switch to Threaded View
Zookeeper, mail # user - ZooKeeper 3.4.3: Failed to unregister with JMX


Copy link to this message
-
Re: ZooKeeper 3.4.3: Failed to unregister with JMX
Michi Mutsuzaki 2012-07-30, 05:42
Hi César,

Thank you for the info! I'll give it a try.

--Michi

On Sun, Jul 29, 2012 at 4:22 AM, César Álvarez Núñez
<[EMAIL PROTECTED]> wrote:
> Hi Michi,
>
> The following patch ZOOKEEPER-1214 is needed in order to restart a
> QuorumPeer when running in embedded mode.
>
> Could you try it again with ZK-1214 applied?
>
> BR,
> /César.
>
>
> On Fri, Jul 27, 2012 at 10:44 PM, Michi Mutsuzaki <[EMAIL PROTECTED]>
> wrote:
>>
>> 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
>
>