cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-6483) Possible Collections.sort assertion failure in STCS.filterColdSSTables
Date Fri, 13 Dec 2013 21:38:07 GMT


Tyler Hobbs commented on CASSANDRA-6483:

bq. Note that the CASSANDRA-6109 feature claims to be “off” by default, however it isn’t
immediately clear to me from that patch how “off” is implemented, and whether it is supposed
to go down that code path even when “off"

I answered this on the dev ML, but I'll repeat it here for others who are interested.  The
default max_cold_reads_ratio is 0.0, so {{filterColdSSTables()}} shouldn't filter any SSTables.
 When writing this patch, I realized that even with that set to 0.0, SSTables that have no
read activity at all would still be filtered out.  However, after this patch, that's no longer
true, and a setting of 0.0 will prevent any filtering at all.

bq. I’m guessing there is no actual downside (other than ERROR level messages in the logs
which cause alerts), since it just fails a subset of compactions?

That's correct, this shouldn't cause any other problems, only delay some compactions.

> Possible Collections.sort assertion failure in STCS.filterColdSSTables
> ----------------------------------------------------------------------
>                 Key: CASSANDRA-6483
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: graham sanderson
>            Assignee: Tyler Hobbs
>              Labels: compaction
>             Fix For: 2.0.4
>         Attachments: 6483-2.0-v1.patch
> We have observed the following stack trace periodically:
> {code}
> 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
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at
> {code}
> 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