Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
Description
LongLeveledCompactionStrategyTest periodically fails with:
[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
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.
[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
Attachments
Attachments
Issue Links
- is depended upon by
-
CASSANDRA-9093 testall should pass on trunk
- Resolved
- is duplicated by
-
CASSANDRA-9288 LongLeveledCompactionStrategyTest is failing
- Resolved
- links to