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

Michi Mutsuzaki commented on ZOOKEEPER-1894:
--------------------------------------------

... ok this is another slow reverse dns lookup problem. QuorumPeer is blocking 
LearnerHandlers for a long time:

{noformat}
    [junit] "QuorumPeer[myid=2]/0.0.0.0:11228" prio=10 tid=0x00007f5288034800 
nid=0x7506 runnable [0x00007f5243bfa000]
    [junit]    java.lang.Thread.State: RUNNABLE
    [junit]     at java.net.Inet4AddressImpl.getHostByAddr(Native Method)
    [junit]     at java.net.InetAddress$1.getHostByAddr(InetAddress.java:905)
    [junit]     at 
java.net.InetAddress.getHostFromNameService(InetAddress.java:590)
    [junit]     at java.net.InetAddress.getHostName(InetAddress.java:532)
    [junit]     at java.net.InetAddress.getHostName(InetAddress.java:504)
    [junit]     at 
java.net.InetSocketAddress$InetSocketAddressHolder.getHostName(InetSocketAddress.java:82)
    [junit]     at 
java.net.InetSocketAddress$InetSocketAddressHolder.access$600(InetSocketAddress.java:56)
    [junit]     at 
java.net.InetSocketAddress.getHostName(InetSocketAddress.java:345)
    [junit]     at 
org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer.toString(QuorumPeer.java:235)
    [junit]     at 
org.apache.zookeeper.server.quorum.flexible.QuorumMaj.toString(QuorumMaj.java:117)
    [junit]     at 
org.apache.zookeeper.server.quorum.QuorumPeerConfig.writeDynamicConfig(QuorumPeerConfig.java:305)
    [junit]     at 
org.apache.zookeeper.server.quorum.QuorumPeer.setLastSeenQuorumVerifier(QuorumPeer.java:1279)
    [junit]     - locked <0x00000000f63258a0> (a 
org.apache.zookeeper.server.quorum.QuorumPeer)
    [junit]     at 
org.apache.zookeeper.server.quorum.Leader.lead(Leader.java:507)
    [junit]     at 
org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:980)
{noformat}

> ObserverTest.testObserver fails consistently
> --------------------------------------------
>
>                 Key: ZOOKEEPER-1894
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1894
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: quorum
>    Affects Versions: 3.5.0
>         Environment: ubuntu 13.10
> Server environment:java.version=1.7.0_51
> Server environment:java.vendor=Oracle Corporation
>            Reporter: Michi Mutsuzaki
>             Fix For: 3.5.0
>
>         Attachments: TEST-org.apache.zookeeper.test.ObserverTest.txt.gz
>
>
> ObserverTest.testObserver fails consistently on my box. It looks like the 
> observer (myid:3) calls QuorumPeer.getQuorumVerifier() in a tight loop, and 
> the leader (myid:2) is not getting enough CPU time to synchronize with the 
> follower and the observer. The test passes if I increase 
> ClientBase.CONNECTION_TIMEOUT from 30 seconds to 120 seconds. I'll attach a 
> log file.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to