Return-Path: X-Original-To: apmail-zookeeper-dev-archive@www.apache.org Delivered-To: apmail-zookeeper-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 732B075BF for ; Wed, 3 Aug 2011 22:37:50 +0000 (UTC) Received: (qmail 94571 invoked by uid 500); 3 Aug 2011 22:37:50 -0000 Delivered-To: apmail-zookeeper-dev-archive@zookeeper.apache.org Received: (qmail 94381 invoked by uid 500); 3 Aug 2011 22:37:49 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 94365 invoked by uid 99); 3 Aug 2011 22:37:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 22:37:49 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 22:37:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 703BDA6465 for ; Wed, 3 Aug 2011 22:37:27 +0000 (UTC) Date: Wed, 3 Aug 2011 22:37:27 +0000 (UTC) From: "Eugene Koontz (JIRA)" To: dev@zookeeper.apache.org Message-ID: <263157580.6339.1312411047456.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (ZOOKEEPER-1145) ObserverTest.testObserver fails at particular point after several runs of ant junt.run -Dtestcase=ObserverTest MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 ObserverTest.testObserver fails at particular point after several runs of ant junt.run -Dtestcase=ObserverTest -------------------------------------------------------------------------------------------------------------- Key: ZOOKEEPER-1145 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1145 Project: ZooKeeper Issue Type: Bug Affects Versions: 3.4.0 Reporter: Eugene Koontz Priority: Blocker Fix For: 3.4.0 Attachments: repeat.sh Use the attached repeat.sh to run ObserverTest repeatedly by doing: src/repeat.sh ObserverTest The test will will fail eventually after a few iterations; should be only a few minutes. The line that fails in the test is: zk = new ZooKeeper("127.0.0.1:" + CLIENT_PORT_OBS, ClientBase.CONNECTION_TIMEOUT, this); Attached as out.txt is the output showing a successful run, for comparison, followed by a failed run. Note that in the seconds before the test fails, in the following lines, that there is a 24 second gap in time (between 22:13:02 and 22:13:26): bq. [junit] 2011-08-03 22:13:02,167 [myid:3] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11229:ZooKeeperServer@833] - Client attempting to establish new session at /127.0.0.1:46929 [junit] 2011-08-03 22:13:26,003 [myid:2] - INFO [QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:11228:Leader@419] - Shutting down [junit] 2011-08-03 22:13:26,003 [myid:2] - INFO [QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:11228:Leader@425] - Shutdown called [junit] java.lang.Exception: shutdown Leader! reason: Only 0 followers, need 1 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira