Darla Baker created CASSANDRA-10170:
---------------------------------------

             Summary: Upgradesstables from 1.2.x -jb- to 2.1.x -ka- some files 
are refusing to upgrade with java.lang.ClassCastException: null
                 Key: CASSANDRA-10170
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10170
             Project: Cassandra
          Issue Type: Bug
            Reporter: Darla Baker
            Priority: Critical


Not all -jb- tables throw this error, but I have a set of tables that will 
reproduce the error:
{code}
Error upgrading 
SSTableReader(path='/var/lib/cassandra/data/<ks>/<table>-13fdf0a04a9511e59ebb3130028babc8/<ks>-<table>-jb-2-Data.db'):
 org.apache.cassandra.db.composites.CompoundComposite cannot be cast to 
org.apache.cassandra.db.composites.CellName
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)
    at org.apache.cassandra.db.AbstractCell$1.computeNext(AbstractCell.java:52)
    at org.apache.cassandra.db.AbstractCell$1.computeNext(AbstractCell.java:46)
    at 
com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
    at 
com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
    at 
org.apache.cassandra.io.sstable.SSTableIdentityIterator.hasNext(SSTableIdentityIterator.java:120)
    at 
org.apache.cassandra.utils.MergeIterator$OneToOne.computeNext(MergeIterator.java:202)
    at 
com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
    at 
com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
    at com.google.common.collect.Iterators$7.computeNext(Iterators.java:645)
    at 
com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
    at 
com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
    at 
org.apache.cassandra.db.ColumnIndex$Builder.buildForCompaction(ColumnIndex.java:165)
    at 
org.apache.cassandra.db.compaction.LazilyCompactedRow.write(LazilyCompactedRow.java:121)
    at 
org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:192)
    at 
org.apache.cassandra.io.sstable.SSTableRewriter.append(SSTableRewriter.java:127)
    at org.apache.cassandra.db.compaction.Upgrader.upgrade(Upgrader.java:89)
    at 
org.apache.cassandra.tools.StandaloneUpgrader.main(StandaloneUpgrader.java:104)
{code}

This was seen in CASSANDRA-6738 (Not Reproduced), CASSANDRA-7112 (Fixed 2.1 
rc1) and CASSANDRA-7990 (Fixed 2.1.1).  I decided to open a new Jira since this 
is being observed in a version where it should have been fixed and wasn't sure 
if perhaps one of the other Jiras should be reopened instead so I'll leave it 
to the experts.

Since the sstables are sensitive, I can share the data privately as needed to 
reproduce and diagnose the issue.



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

Reply via email to