You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Marshall McMullen (JIRA)" <ji...@apache.org> on 2012/11/30 06:27:58 UTC

[jira] [Created] (ZOOKEEPER-1594) TestReconfig intermittently fails

Marshall McMullen created ZOOKEEPER-1594:
--------------------------------------------

             Summary: TestReconfig intermittently fails
                 Key: ZOOKEEPER-1594
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1594
             Project: ZooKeeper
          Issue Type: Bug
          Components: c client
    Affects Versions: 3.5.0
            Reporter: Marshall McMullen
            Assignee: Marshall McMullen


We've seen an intermittent failure in one of the C client tests TestReconfig which was committed as part of ZOOKEEPER-1355.

The test that is failing is failing *before* any rebalancing algorithm is invoked. After inspecting this we've concluded it is a failure to properly seed the random number generator properly. This same problem was seen and solved on the Java client side so we just need to do something similar on the C client side.

The assertion:

Build/trunk/src/c/tests/TestReconfig.cc:571: Assertion: assertion failed [Expression: numClientsPerHost.at(i) >= lowerboundClientsPerServer(numClients, numServers)]
[exec] [exec] Failures !!!
[exec] [exec] Run: 38 Failure total: 1 Failures: 1 Errors: 0
[exec] [exec] make: *** [run-check] Error 1
[exec] 
[exec] BUILD FAILED
[exec] /home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-Build/trunk/build.xml:1262: The following error occurred while executing this line:
[exec] /home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-Build/trunk/build.xml:1272: exec returned: 2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (ZOOKEEPER-1594) TestReconfig intermittently fails

Posted by "Marshall McMullen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507113#comment-13507113 ] 

Marshall McMullen commented on ZOOKEEPER-1594:
----------------------------------------------

In the equivalent Java client test, the essential idea is to use a known seed of 1, but instead of using the random numbers directly from that, it passes the numbers generated into the client's invidiaul random number generators to be the seeds. 
                
> TestReconfig intermittently fails
> ---------------------------------
>
>                 Key: ZOOKEEPER-1594
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1594
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.5.0
>            Reporter: Marshall McMullen
>            Assignee: Marshall McMullen
>
> We've seen an intermittent failure in one of the C client tests TestReconfig which was committed as part of ZOOKEEPER-1355.
> The test that is failing is failing *before* any rebalancing algorithm is invoked. After inspecting this we've concluded it is a failure to properly seed the random number generator properly. This same problem was seen and solved on the Java client side so we just need to do something similar on the C client side.
> The assertion:
> Build/trunk/src/c/tests/TestReconfig.cc:571: Assertion: assertion failed [Expression: numClientsPerHost.at(i) >= lowerboundClientsPerServer(numClients, numServers)]
> [exec] [exec] Failures !!!
> [exec] [exec] Run: 38 Failure total: 1 Failures: 1 Errors: 0
> [exec] [exec] make: *** [run-check] Error 1
> [exec] 
> [exec] BUILD FAILED
> [exec] /home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-Build/trunk/build.xml:1262: The following error occurred while executing this line:
> [exec] /home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-Build/trunk/build.xml:1272: exec returned: 2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira