zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Reed (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ZOOKEEPER-684) Race in LENonTerminateTest
Date Tue, 09 Mar 2010 20:58:27 GMT

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

Benjamin Reed commented on ZOOKEEPER-684:
-----------------------------------------

it failed on my machine with the patch. it looks identical:

2010-03-09 12:55:28,703 - INFO  [Thread-1:LeaderElection@109] - 0       -> 1
2010-03-09 12:55:28,704 - INFO  [Thread-1:LeaderElection@109] - 2       -> 1
2010-03-09 12:55:28,704 - INFO  [Thread-1:LeaderElection@109] - 1       -> 1
2010-03-09 12:55:28,704 - INFO  [Thread-2:LeaderElection@155] - Server address: /127.0.0.1:11221
2010-03-09 12:55:28,705 - INFO  [Thread-2:LeaderElection@155] - Server address: /127.0.0.1:11223
2010-03-09 12:55:28,706 - INFO  [Thread-2:LeaderElection@155] - Server address: /127.0.0.1:11225
2010-03-09 12:55:28,706 - INFO  [Thread-2:LeaderElection@103] - Election tally:
2010-03-09 12:55:28,707 - INFO  [Thread-2:LeaderElection@109] - 2       -> 2
2010-03-09 12:55:28,707 - INFO  [Thread-2:LeaderElection@109] - 1       -> 1
2010-03-09 12:55:28,708 - INFO  [Thread-2:LeaderElection@218] - Found leader: my type is:
PARTICIPANT
2010-03-09 12:55:29,705 - INFO  [Thread-1:LeaderElection@155] - Server address: /127.0.0.1:11221
2010-03-09 12:55:29,706 - INFO  [Thread-1:LeaderElection@155] - Server address: /127.0.0.1:11223
2010-03-09 12:55:29,710 - INFO  [Thread-1:LeaderElection@155] - Server address: /127.0.0.1:11225
2010-03-09 12:55:29,911 - WARN  [Thread-1:LeaderElection@195] - Ignoring exception while looking
for leader
java.net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive0(Native Method)
        at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
        at java.net.DatagramSocket.receive(DatagramSocket.java:712)
        at org.apache.zookeeper.server.quorum.LeaderElection.lookForLeader(LeaderElection.java:171)
        at org.apache.zookeeper.test.LENonTerminateTest$LEThread.run(LENonTerminateTest.java:87)
2010-03-09 12:55:29,912 - INFO  [Thread-1:LeaderElection@103] - Election tally:
2010-03-09 12:55:30,913 - INFO  [Thread-1:LeaderElection@155] - Server address: /127.0.0.1:11221
2010-03-09 12:55:30,914 - INFO  [Thread-1:LeaderElection@155] - Server address: /127.0.0.1:11223
2010-03-09 12:55:30,915 - INFO  [Thread-1:LeaderElection@155] - Server address: /127.0.0.1:11225
2010-03-09 12:55:31,116 - WARN  [Thread-1:LeaderElection@195] - Ignoring exception while looking
for leader
java.net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive0(Native Method)
        at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
        at java.net.DatagramSocket.receive(DatagramSocket.java:712)
        at org.apache.zookeeper.server.quorum.LeaderElection.lookForLeader(LeaderElection.java:171)
        at org.apache.zookeeper.test.LENonTerminateTest$LEThread.run(LENonTerminateTest.java:87)
2010-03-09 12:55:31,117 - INFO  [Thread-1:LeaderElection@103] - Election tally:
2010-03-09 12:55:31,118 - INFO  [Thread-1:LeaderElection@109] - 0       -> 1
2010-03-09 12:55:32,119 - INFO  [Thread-1:LeaderElection@155] - Server address: /127.0.0.1:11221

the last part keeps repeating.

> Race in LENonTerminateTest
> --------------------------
>
>                 Key: ZOOKEEPER-684
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-684
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: leaderElection, server
>            Reporter: Flavio Paiva Junqueira
>            Assignee: Henry Robinson
>            Priority: Critical
>             Fix For: 3.3.0
>
>         Attachments: zookeeper-684-test-failure.rtf, ZOOKEEPER-684.patch
>
>
> testNonTermination failed during a Hudson run for ZOOKEEPER-59. After inspecting the
output, it looks like server is electing 2 as a leader and leaving. Given that 2 is just a
mock server, server 0 remains alone in leader election.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message