You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Rakesh R (Created) (JIRA)" <ji...@apache.org> on 2012/03/14 15:50:39 UTC

[jira] [Created] (ZOOKEEPER-1414) QuorumPeerMainTest.testQuorum, testBadPackets are failing intermittently

QuorumPeerMainTest.testQuorum, testBadPackets are failing intermittently
------------------------------------------------------------------------

                 Key: ZOOKEEPER-1414
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1414
             Project: ZooKeeper
          Issue Type: Test
          Components: server
    Affects Versions: 3.4.3, 3.5.0
            Reporter: Rakesh R
            Priority: Minor


The QuorumPeerMainTest.testQuorum, testBadPackets testcases are failing intermittently due to the wrong ZKClient usage pattern.

Saw the following ConnectionLoss on 3.4 version:
{noformat}
KeeperErrorCode = ConnectionLoss for /foo_q1
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /foo_q1
at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:657)
at org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPackets(QuorumPeerMainTest.java:212)
{noformat}

Since the ZooKeeper connection is happening in async way through ClientCnxn, the client should wait for the 'KeeperState.SyncConnected' event before start using. But these test cases are not waiting for the connection like:
{noformat}
ZooKeeper zk = new ZooKeeper("127.0.0.1:" + CLIENT_PORT_QP1,
      ClientBase.CONNECTION_TIMEOUT, this);
zk.create("/foo_q1", "foobar1".getBytes(), Ids.OPEN_ACL_UNSAFE,
      CreateMode.PERSISTENT);
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (ZOOKEEPER-1414) QuorumPeerMainTest.testQuorum, testBadPackets are failing intermittently

Posted by "Rakesh R (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rakesh R reassigned ZOOKEEPER-1414:
-----------------------------------

    Assignee: Rakesh R
    
> QuorumPeerMainTest.testQuorum, testBadPackets are failing intermittently
> ------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1414
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1414
>             Project: ZooKeeper
>          Issue Type: Test
>          Components: server
>    Affects Versions: 3.4.3, 3.5.0
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>            Priority: Minor
>
> The QuorumPeerMainTest.testQuorum, testBadPackets testcases are failing intermittently due to the wrong ZKClient usage pattern.
> Saw the following ConnectionLoss on 3.4 version:
> {noformat}
> KeeperErrorCode = ConnectionLoss for /foo_q1
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /foo_q1
> at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
> at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
> at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:657)
> at org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPackets(QuorumPeerMainTest.java:212)
> {noformat}
> Since the ZooKeeper connection is happening in async way through ClientCnxn, the client should wait for the 'KeeperState.SyncConnected' event before start using. But these test cases are not waiting for the connection like:
> {noformat}
> ZooKeeper zk = new ZooKeeper("127.0.0.1:" + CLIENT_PORT_QP1,
>       ClientBase.CONNECTION_TIMEOUT, this);
> zk.create("/foo_q1", "foobar1".getBytes(), Ids.OPEN_ACL_UNSAFE,
>       CreateMode.PERSISTENT);
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira