cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "graham sanderson (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-6483) Possible Collections.sort assertion failure in STCS.filterColdSSTables
Date Fri, 13 Dec 2013 00:44:10 GMT
graham sanderson created CASSANDRA-6483:

             Summary: Possible Collections.sort assertion failure in STCS.filterColdSSTables
                 Key: CASSANDRA-6483
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: graham sanderson

We have observed the following stack trace periodically:

java.lang.IllegalArgumentException: Comparison method violates its general contract!
        at java.util.TimSort.mergeLo(
        at java.util.TimSort.mergeAt(
        at java.util.TimSort.mergeCollapse(
        at java.util.TimSort.sort(
        at java.util.TimSort.sort(
        at java.util.Arrays.sort(
        at java.util.Collections.sort(
        at org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy.filterColdSSTables(
        at org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy.getNextBackgroundSSTables(
        at org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy.getNextBackgroundTask(
        at org.apache.cassandra.db.compaction.CompactionManager$
        at java.util.concurrent.Executors$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

The comparator ant SizeTieredCompactionStrategy line 94 breaks the assertions in the new JDK7
default sort algorithm, because (I think just) the hotness value (based on meter) may be modified
concurrently by another thread

This bug appears to have been introduced in CASSANDRA-6109

This message was sent by Atlassian JIRA

View raw message