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

Sylvain Lebresne commented on CASSANDRA-6738:
---------------------------------------------

Slightly confused about those sstables. First because all of them (even the 
ones in the "snapshot" subdir) are on version jb, i.e. are already 2.1 sstables 
that don't need upgrading. But more importantly because those sstables have 
pretty clearly broken data (at least for the schema definition above). Mainly, 
there is a weird entry that do not correspond to the schema and in particular 
don't have the proper number of components in the cell name (which might be 
what trigger the exception above though I haven't been able to reproduce that 
one exactly, I do get other type of errors though since the sstable is clearly 
broken) which should never happen in a CQL3 table. It also doesn't appear that 
the cells are properly sorted in the sstable, suggesting something is really 
really wrong with the sstable.  

> java.lang.ClassCastException: 
> org.apache.cassandra.db.composites.CompoundComposite cannot be cast to 
> org.apache.cassandra.db.composites.CellName
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-6738
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6738
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Mateusz Gajewski
>            Assignee: Sylvain Lebresne
>             Fix For: 2.1 beta2
>
>         Attachments: 6738.txt, user_attribs.tar.gz
>
>
> When using nodetool upgradesstables (2.0.4 -> 2.1-beta) class cast exception 
> occurs:
> ERROR [CompactionExecutor:7] 2014-02-19 21:34:16,839 CassandraDaemon.java:165 
> - Exception in thread Thread[CompactionExecutor:7,1,main]
> java.lang.ClassCastException: 
> org.apache.cassandra.db.composites.CompoundComposite cannot be cast to 
> org.apache.cassandra.db.composites.CellName
>       at 
> org.apache.cassandra.db.OnDiskAtom$Serializer.deserializeFromSSTable(OnDiskAtom.java:86)
>  ~[main/:na]
>       at org.apache.cassandra.db.Cell$1.computeNext(Cell.java:75) ~[main/:na]
>       at org.apache.cassandra.db.Cell$1.computeNext(Cell.java:64) ~[main/:na]
>       at 
> com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
>  ~[guava-16.0.jar:na]
>       at 
> com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) 
> ~[guava-16.0.jar:na]
>       at 
> org.apache.cassandra.io.sstable.SSTableIdentityIterator.hasNext(SSTableIdentityIterator.java:129)
>  ~[main/:na]
>       at 
> org.apache.cassandra.utils.MergeIterator$OneToOne.computeNext(MergeIterator.java:200)
>  ~[main/:na]
>       at 
> com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
>  ~[guava-16.0.jar:na]
>       at 
> com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) 
> ~[guava-16.0.jar:na]
>       at 
> com.google.common.collect.Iterators$7.computeNext(Iterators.java:645) 
> ~[guava-16.0.jar:na]
>       at 
> com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
>  ~[guava-16.0.jar:na]
>       at 
> com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) 
> ~[guava-16.0.jar:na]
>       at 
> org.apache.cassandra.db.ColumnIndex$Builder.buildForCompaction(ColumnIndex.java:165)
>  ~[main/:na]
>       at 
> org.apache.cassandra.db.compaction.LazilyCompactedRow.write(LazilyCompactedRow.java:110)
>  ~[main/:na]
>       at 
> org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:178) 
> ~[main/:na]
>       at 
> org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:172)
>  ~[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:67)
>  ~[main/:na]
>       at 
> org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:64)
>  ~[main/:na]
>       at 
> org.apache.cassandra.db.compaction.CompactionManager$4.perform(CompactionManager.java:262)
>  ~[main/:na]
>       at 
> org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:227)
>  ~[main/:na]
>       at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
> ~[na:1.7.0_45]
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  ~[na:1.7.0_45]
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  [na:1.7.0_45]
>       at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to