You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefania (JIRA)" <ji...@apache.org> on 2015/05/06 03:23:00 UTC

[jira] [Comment Edited] (CASSANDRA-8656) long-test LongLeveledCompactionStrategyTest flaps

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

Stefania edited comment on CASSANDRA-8656 at 5/6/15 1:22 AM:
-------------------------------------------------------------

On the CASSANDRA-7066 branch based on trunk, I fixed the class cast exception and an additional NPE here: https://github.com/stef1927/cassandra/commit/8e13c2efa5f7c0966b74f086249de1c85aa5d5fd#diff-19c4e291353bef22d89ffe4f4af69cae. I needed this test to pass for CASSANDRA-7066.


was (Author: stefania):
On trunk I fixed the class cast exception and an additional NPE here: https://github.com/stef1927/cassandra/commit/8e13c2efa5f7c0966b74f086249de1c85aa5d5fd#diff-19c4e291353bef22d89ffe4f4af69cae. I needed this test to pass for https://issues.apache.org/jira/browse/CASSANDRA-7066.

> long-test LongLeveledCompactionStrategyTest flaps
> -------------------------------------------------
>
>                 Key: CASSANDRA-8656
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8656
>             Project: Cassandra
>          Issue Type: Test
>          Components: Tests
>            Reporter: Michael Shuler
>            Priority: Minor
>             Fix For: 2.0.x
>
>         Attachments: system.log
>
>
> LongLeveledCompactionStrategyTest periodically fails with:
> {noformat}
>     [junit] Testsuite: org.apache.cassandra.db.compaction.LongLeveledCompactionStrategyTest
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 54.412 sec
>     [junit] 
>     [junit] Testcase: testParallelLeveledCompaction(org.apache.cassandra.db.compaction.LongLeveledCompactionStrategyTest):      Caused an ERROR
>     [junit] java.util.concurrent.ExecutionException: java.lang.RuntimeException: Last written key DecoratedKey(3133, 3133) >= current key DecoratedKey(313236, 313236) writing into build/test/cassandra/data/Keyspace1/StandardLeveled/Keyspace1-StandardLeveled-tmp-jb-304-Data.db
>     [junit] java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Last written key DecoratedKey(3133, 3133) >= current key DecoratedKey(313236, 313236) writing into build/test/cassandra/data/Keyspace1/StandardLeveled/Keyspace1-StandardLeveled-tmp-jb-304-Data.db
>     [junit]     at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:413)
>     [junit]     at org.apache.cassandra.utils.FBUtilities.waitOnFutures(FBUtilities.java:402)
>     [junit]     at org.apache.cassandra.db.compaction.LongLeveledCompactionStrategyTest.testParallelLeveledCompaction(LongLeveledCompactionStrategyTest.java:97)
>     [junit] Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Last written key DecoratedKey(3133, 3133) >= current key DecoratedKey(313236, 313236) writing into build/test/cassandra/data/Keyspace1/StandardLeveled/Keyspace1-StandardLeveled-tmp-jb-304-Data.db
>     [junit]     at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>     [junit]     at java.util.concurrent.FutureTask.get(FutureTask.java:188)
>     [junit]     at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:409)
>     [junit] Caused by: java.lang.RuntimeException: Last written key DecoratedKey(3133, 3133) >= current key DecoratedKey(313236, 313236) writing into build/test/cassandra/data/Keyspace1/StandardLeveled/Keyspace1-StandardLeveled-tmp-jb-304-Data.db
>     [junit]     at org.apache.cassandra.io.sstable.SSTableWriter.beforeAppend(SSTableWriter.java:143)
>     [junit]     at org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:166)
>     [junit]     at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:167)
>     [junit]     at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>     [junit]     at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:60)
>     [junit]     at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59)
>     [junit]     at org.apache.cassandra.db.compaction.LongLeveledCompactionStrategyTest$1.run(LongLeveledCompactionStrategyTest.java:87)
>     [junit]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     [junit]     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>     [junit]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>     [junit]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>     [junit]     at java.lang.Thread.run(Thread.java:745)
>     [junit] 
>     [junit] 
>     [junit] Test org.apache.cassandra.db.compaction.LongLeveledCompactionStrategyTest FAILED
> {noformat}
> I would guess the failure is 10-20% of the time, looping over the test repeatedly.
> ----
> On the 2.1 branch, the failure is different, so perhaps this could also be updated.
> {noformat}
>     [junit] Testsuite: org.apache.cassandra.db.compaction.LongLeveledCompactionStrategyTest
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.04 sec
>     [junit] 
>     [junit] Testcase: testParallelLeveledCompaction(org.apache.cassandra.db.compaction.LongLeveledCompactionStrategyTest):      Caused an ERROR
>     [junit] org.apache.cassandra.db.compaction.WrappingCompactionStrategy cannot be cast to org.apache.cassandra.db.compaction.LeveledCompactionStrategy
>     [junit] java.lang.ClassCastException: org.apache.cassandra.db.compaction.WrappingCompactionStrategy cannot be cast to org.apache.cassandra.db.compaction.LeveledCompactionStrategy
>     [junit]     at org.apache.cassandra.db.compaction.LongLeveledCompactionStrategyTest.testParallelLeveledCompaction(LongLeveledCompactionStrategyTest.java:45)
>     [junit] 
>     [junit] 
>     [junit] Test org.apache.cassandra.db.compaction.LongLeveledCompactionStrategyTest FAILED
> {noformat}



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