cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Lerer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-8181) Intermittent failure of SSTableImportTest unit test
Date Fri, 21 Nov 2014 09:26:33 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-8181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Lerer updated CASSANDRA-8181:
--------------------------------------
    Attachment: CASSANDRA-8181.txt

The problem came from the fact that {{testBackwardCompatibilityOfImportWithAsciiKeyValidator}}
was setting the System property {{skip.key.validator}} to true while {{testImportWithAsciiKeyValidator}}
was expecting the default value which is false. As with Java 7 JUnit does not guarantee anymore
the order in which the test methods are run, if {{testBackwardCompatibilityOfImportWithAsciiKeyValidator}}
 was run before {{testImportWithAsciiKeyValidator}} then the second test would fail otherwise
it would pass.
The patch set the the System property {{skip.key.validator}} to false in {{testImportWithAsciiKeyValidator}}.

> Intermittent failure of SSTableImportTest unit test
> ---------------------------------------------------
>
>                 Key: CASSANDRA-8181
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8181
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Michael Shuler
>            Assignee: Benjamin Lerer
>             Fix For: 2.1.3
>
>         Attachments: CASSANDRA-8181.txt, SSTableImportTest_failure_system.log.gz
>
>
> {noformat}
>     [junit] Testsuite: org.apache.cassandra.tools.SSTableImportTest
>     [junit] Tests run: 8, Failures: 1, Errors: 0, Time elapsed: 6.712 sec
>     [junit] 
>     [junit] ------------- Standard Output ---------------
>     [junit] Counting keys to import, please wait... (NOTE: to skip this use -n <num_keys>)
>     [junit] Importing 2 keys...
>     [junit] 2 keys imported successfully.
>     [junit] Counting keys to import, please wait... (NOTE: to skip this use -n <num_keys>)
>     [junit] Importing 2 keys...
>     [junit] 2 keys imported successfully.
>     [junit] Counting keys to import, please wait... (NOTE: to skip this use -n <num_keys>)
>     [junit] Importing 2 keys...
>     [junit] 2 keys imported successfully.
>     [junit] Counting keys to import, please wait... (NOTE: to skip this use -n <num_keys>)
>     [junit] Importing 2 keys...
>     [junit] Importing 2 keys...
>     [junit] 2 keys imported successfully.
>     [junit] Counting keys to import, please wait... (NOTE: to skip this use -n <num_keys>)
>     [junit] Importing 2 keys...
>     [junit] 2 keys imported successfully.
>     [junit] Counting keys to import, please wait... (NOTE: to skip this use -n <num_keys>)
>     [junit] Importing 1 keys...
>     [junit] 1 keys imported successfully.
>     [junit] Counting keys to import, please wait... (NOTE: to skip this use -n <num_keys>)
>     [junit] Importing 2 keys...
>     [junit] 2 keys imported successfully.
>     [junit] ------------- ---------------- ---------------
>     [junit] Testcase: testImportWithAsciiKeyValidator(org.apache.cassandra.tools.SSTableImportTest):
   FAILED
>     [junit] null
>     [junit] junit.framework.AssertionFailedError
>     [junit]     at org.apache.cassandra.tools.SSTableImportTest.testImportWithAsciiKeyValidator(SSTableImportTest.java:166)
>     [junit] 
>     [junit] 
>     [junit] Test org.apache.cassandra.tools.SSTableImportTest FAILED
> {noformat}
> testImportWithAsciiKeyValidator was added in CASSANDRA-7498 and fails as above occasionally
(~10-15% of runs) in CI. Attached is the system.log from the failed test on 2.1 HEAD (8e5fdc2).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message