Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10170

Upgradesstables from 2.0.8 -jb- to 2.1.x -ka- some files are refusing to upgrade with java.lang.ClassCastException: null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Urgent
    • Resolution: Not A Problem
    • None
    • None
    • None
    • Critical

    Description

      Not all jb tables throw this error, but I have a set of tables that will reproduce the error:

      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)
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dkblinux98 Darla Baker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: