cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6670) LeaveAndBootstrapTest occasional failure reproduced in 2.0
Date Fri, 07 Feb 2014 16:42:19 GMT

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

Brandon Williams commented on CASSANDRA-6670:
---------------------------------------------

I added some extra debug logging in PRCS.submit and PRCS.blockUntilFinished, and we can see
that there is a occasionally very small window where the block instantly returns after submission
before PRC is done:

{noformat}
DEBUG [main] 2014-02-07 03:44:31,503 PendingRangeCalculatorService.java (line 75) submitting
update
DEBUG [main] 2014-02-07 03:44:31,503 PendingRangeCalculatorService.java (line 85) calc done,
breaking
{noformat}

This is going to be impossible in actual practice, but it's a problem for the test (and this
does fail the same way on 1.2, as it should, since PRCS is the same there.)  I think our best
options come down to either a small sleep before calling blockUntilFinished or doing another
submit/block, and between the two the sleep actually seems the least evil.  I added a 100ms
sleep before the block in 2dd55c7d3

> LeaveAndBootstrapTest occasional failure reproduced in 2.0
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-6670
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6670
>             Project: Cassandra
>          Issue Type: Test
>          Components: Tests
>         Environment: Debian Stable (Wheezy) amd64
> Oracle JVM 1.7.0_51-b13 (and 1.7.0_45-b18)
>            Reporter: Michael Shuler
>            Assignee: Brandon Williams
>            Priority: Minor
>         Attachments: system.log, test.sh
>
>
> {noformat}
> ==== Run #122 ====
> Buildfile: /home/mshuler/git/cassandra/build.xml
> init:
> maven-ant-tasks-localrepo:
> maven-ant-tasks-download:
> maven-ant-tasks-init:
> maven-declare-dependencies:
> maven-ant-tasks-retrieve-build:
> init-dependencies:
>      [echo] Loading dependency paths from file: /home/mshuler/git/cassandra/build/build-dependencies.xml
> check-gen-cli-grammar:
> gen-cli-grammar:
> check-gen-cql2-grammar:
> gen-cql2-grammar:
> check-gen-cql3-grammar:
> gen-cql3-grammar:
> build-project:
>      [echo] apache-cassandra: /home/mshuler/git/cassandra/build.xml
> createVersionPropFile:
> [propertyfile] Updating property file: /home/mshuler/git/cassandra/src/resources/org/apache/cassandra/config/version.properties
>      [copy] Copying 1 file to /home/mshuler/git/cassandra/build/classes/main
> build:
> build-test:
> test:
>      [echo] running unit tests
>     [junit] WARNING: multiple versions of ant detected in path for junit 
>     [junit]          jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
>     [junit]      and jar:file:/home/mshuler/git/cassandra/build/lib/jars/ant-1.6.5.jar!/org/apache/tools/ant/Project.class
>     [junit] Testsuite: org.apache.cassandra.service.LeaveAndBootstrapTest
>     [junit] Tests run: 8, Failures: 1, Errors: 0, Time elapsed: 7.054 sec
>     [junit] 
>     [junit] ------------- Standard Error -----------------
>     [junit]  WARN 22:14:26,870 Node /127.0.0.3 'leaving' token mismatch. Long network
partition?
>     [junit] ------------- ---------------- ---------------
>     [junit] Testcase: newTestWriteEndpointsDuringLeave(org.apache.cassandra.service.LeaveAndBootstrapTest):
 FAILED
>     [junit] mismatched endpoint sets expected:<[/127.0.0.4, /127.0.0.5]> but was:<[/127.0.0.4]>
>     [junit] junit.framework.AssertionFailedError: mismatched endpoint sets expected:<[/127.0.0.4,
/127.0.0.5]> but was:<[/127.0.0.4]>
>     [junit]     at org.apache.cassandra.service.LeaveAndBootstrapTest.newTestWriteEndpointsDuringLeave(LeaveAndBootstrapTest.java:134)
>     [junit] 
>     [junit] 
>     [junit] Test org.apache.cassandra.service.LeaveAndBootstrapTest FAILED
> BUILD FAILED
> /home/mshuler/git/cassandra/build.xml:1079: The following error occurred while executing
this line:
> /home/mshuler/git/cassandra/build.xml:1038: Some unit test(s) failed.
> Total time: 10 seconds
> {noformat}
> - test.sh attached
> - system.log from failed test attached



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message