You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yuki Morishita (JIRA)" <ji...@apache.org> on 2017/02/22 00:39:44 UTC

[jira] [Commented] (CASSANDRA-13070) unittest antiCompactionSizeTest is unstable

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

Yuki Morishita commented on CASSANDRA-13070:
--------------------------------------------

I couldn't reproduce this on my machine, nor cassci has not failed this test (http://cassci.datastax.com/view/cassandra-3.0/job/cassandra-3.0_testall/lastCompletedBuild/testReport/org.apache.cassandra.db.compaction/AntiCompactionTest/antiCompactionSizeTest/history/)

I wonder if this assertion is valid anymore. Once the delta value was 10000, then raised to 16000000.
I *think* the original intention was to test anti compacted SSTables' size should be close to the original size, but it was adjusted for SSTable format change. I suggest removing this assertion since assertion doen't comply the original intention after format change. 

> unittest antiCompactionSizeTest is unstable
> -------------------------------------------
>
>                 Key: CASSANDRA-13070
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13070
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Testing
>            Reporter: Jay Zhuang
>            Assignee: Jay Zhuang
>             Fix For: 3.0.x
>
>         Attachments: 13070-3.0.txt
>
>
> Unittest {{org.apache.cassandra.db.compaction.AntiCompactionTest.antiCompactionSizeTest}} is failing from time to time on branch 3.0 ([13e9396|https://github.com/apache/cassandra/commit/13e939624d21eaf6e16d60b28636125e817ab286]):
> {code}
>     [junit] Testcase: antiCompactionSizeTest(org.apache.cassandra.db.compaction.AntiCompactionTest):    FAILED
>     [junit] expected:<1.29786604E8> but was:<1.13623354E8>
>     [junit] junit.framework.AssertionFailedError: expected:<1.29786604E8> but was:<1.13623354E8>
>     [junit]     at org.apache.cassandra.db.compaction.AntiCompactionTest.antiCompactionSizeTest(AntiCompactionTest.java:164)
> {code}
> Run the single test 21 times:
> {code}
> for i in {0..20}; do echo ==$i; ant testsome -Dtest.name=org.apache.cassandra.db.compaction.AntiCompactionTest -Dtest.methods=antiCompactionSizeTest; echo $i $? >> ~/testresult; done
> {code}
> On mac, it passed for 5 times, on linux it passed for 6 times.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)