cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shuler (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-7713) CommitLogTest failure causes cascading unit test failures
Date Thu, 07 Aug 2014 15:34:12 GMT

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

Michael Shuler edited comment on CASSANDRA-7713 at 8/7/14 3:33 PM:
-------------------------------------------------------------------

Example CommitLogTest run that timed out on me, similar to what's happening in CI:
{noformat}
test:
     [echo] running unit tests
    [mkdir] Created dir: /home/mshuler/git/cassandra/build/test/cassandra
    [mkdir] Created dir: /home/mshuler/git/cassandra/build/test/output
    [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.db.CommitLogTest
    [junit] Testsuite: org.apache.cassandra.db.CommitLogTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] 
    [junit] Testcase: org.apache.cassandra.db.CommitLogTest:testCommitFailurePolicy_stop:
      Caused an ERROR
    [junit] Timeout occurred. Please note the time in the report does not reflect the time
until the timeout.
    [junit] junit.framework.AssertionFailedError: Timeout occurred. Please note the time in
the report does not reflect the time until the timeout.
    [junit] 
    [junit] 
    [junit] Test org.apache.cassandra.db.CommitLogTest FAILED (timeout)

BUILD FAILED
{noformat}
{noformat}
$ ls -la build/test/cassandra/commitlog/
total 3544
dr-xr-xr-x 2 mshuler mshuler    4096 Aug  7 10:20 .
drwxr-xr-x 5 mshuler mshuler    4096 Aug  7 10:20 ..
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853372.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853373.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853374.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853375.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853376.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853379.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853380.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853381.log
{noformat}

cassandra-2.0 CommitLogTest timeout system.log attached. (Total logged time is 6 seconds,
so test is not hitting 60 sec timeout due to actual runtime)


was (Author: mshuler):
    [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.db.CommitLogTest
    [junit] Testsuite: org.apache.cassandra.db.CommitLogTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] 
    [junit] Testcase: org.apache.cassandra.db.CommitLogTest:testCommitFailurePolicy_stop:
      Caused an ERROR
    [junit] Timeout occurred. Please note the time in the report does not reflect the time
until the timeout.
    [junit] junit.framework.AssertionFailedError: Timeout occurred. Please note the time in
the report does not reflect the time until the timeout.
    [junit] 
    [junit] 
    [junit] Test org.apache.cassandra.db.CommitLogTest FAILED (timeout)
{noformat}
{noformat}
$ ls -la build/test/cassandra/commitlog/
total 3544
dr-xr-xr-x 2 mshuler mshuler    4096 Aug  7 10:20 .
drwxr-xr-x 5 mshuler mshuler    4096 Aug  7 10:20 ..
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853372.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853373.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853374.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853375.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853376.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853379.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853380.log
-rw-r--r-- 1 mshuler mshuler 1048576 Aug  7 10:20 CommitLog-3-1407424853381.log
{noformat}

cassandra-2.0 CommitLogTest timeout system.log attached. (Total logged time is 6 seconds,
so test is not hitting 60 sec timeout due to actual runtime)

> CommitLogTest failure causes cascading unit test failures
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-7713
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7713
>             Project: Cassandra
>          Issue Type: Test
>            Reporter: Michael Shuler
>             Fix For: 2.0.10, 2.1.1
>
>         Attachments: CommitLogTest.system.log.txt
>
>
> When CommitLogTest.testCommitFailurePolicy_stop fails or times out, {{commitDir.setWritable(true)}}
is never reached, so the build/test/cassandra/commitlog directory is left without write permissions,
causing cascading failure of all subsequent tests.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message