You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Carl Yeksigian (JIRA)" <ji...@apache.org> on 2014/10/02 17:16:34 UTC

[jira] [Commented] (CASSANDRA-8027) Assertion error in CompressionParameters

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

Carl Yeksigian commented on CASSANDRA-8027:
-------------------------------------------

We can just use the metadata that we already have if it is not a secondary index instead of looking it up in the schema. Otherwise, LGTM.

> Assertion error in CompressionParameters
> ----------------------------------------
>
>                 Key: CASSANDRA-8027
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8027
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Carl Yeksigian
>            Assignee: T Jake Luciani
>         Attachments: 8027.txt
>
>
> Compacting a CF with a secondary index throws an assertion error while opening readers for the secondary index components. It is trying to update the CFMD to null because it could not find a CFMD which describes the secondary index. The CompressionParameters are shared between the data and the secondary indices.
> Was introduced in CASSANDRA-7978.
> {noformat}
> java.lang.AssertionError: null
> 	at org.apache.cassandra.io.compress.CompressionParameters.setLiveMetadata(CompressionParameters.java:108) ~[main/:na]
> 	at org.apache.cassandra.io.sstable.SSTableReader.getCompressionMetadata(SSTableReader.java:1131) ~[main/:na]
> 	at org.apache.cassandra.io.sstable.SSTableReader.openDataReader(SSTableReader.java:1878) ~[main/:na]
> 	at org.apache.cassandra.io.sstable.SSTableScanner.<init>(SSTableScanner.java:67) ~[main/:na]
> 	at org.apache.cassandra.io.sstable.SSTableReader.getScanner(SSTableReader.java:1664) ~[main/:na]
> 	at org.apache.cassandra.io.sstable.SSTableReader.getScanner(SSTableReader.java:1676) ~[main/:na]
> 	at org.apache.cassandra.db.compaction.AbstractCompactionStrategy.getScanners(AbstractCompactionStrategy.java:275) ~[main/:na]
> 	at org.apache.cassandra.db.compaction.AbstractCompactionStrategy.getScanners(AbstractCompactionStrategy.java:324) ~[main/:na]
> 	at org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:151) ~[main/:na]
> 	at org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48) ~[main/:na]
> 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[main/:na]
> 	at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:75) ~[main/:na]
> 	at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59) ~[main/:na]
> 	at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:236) ~[main/:na]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_67]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_67]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_67]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]
> 	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
> {noformat}



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