cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darla Baker (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-10170) Upgradesstables from 2.0.8 -jb- to 2.1.x -ka- some files are refusing to upgrade with java.lang.ClassCastException: null
Date Tue, 25 Aug 2015 15:46:46 GMT


Darla Baker commented on CASSANDRA-10170:

I loaded the -jb- data sstable into a fresh install of c* 2.0.10 using sstableloader and it
loaded fine.  But when running select * from <ks>.<table> in cqlsh I get the following
stack trace:

{code} (line 199) Exception in thread Thread[ReadStage:97,5,main]
        at org.apache.cassandra.db.filter.ColumnCounter$GroupByPrefix.count(
        at org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(
        at org.apache.cassandra.db.filter.QueryFilter.collateColumns(
        at org.apache.cassandra.db.filter.QueryFilter.collateOnDiskAtom(
        at org.apache.cassandra.db.RowIteratorFactory$2.getReduced(
        at org.apache.cassandra.db.RowIteratorFactory$2.getReduced(
        at org.apache.cassandra.utils.MergeIterator$ManyToOne.consume(
        at org.apache.cassandra.utils.MergeIterator$ManyToOne.computeNext(
        at org.apache.cassandra.db.ColumnFamilyStore$9.computeNext(
        at org.apache.cassandra.db.ColumnFamilyStore$9.computeNext(
        at org.apache.cassandra.db.ColumnFamilyStore.filter(
        at org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(
        at org.apache.cassandra.db.RangeSliceCommand.executeLocally(
        at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(
        at org.apache.cassandra.service.StorageProxy$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

> Upgradesstables from 2.0.8 -jb- to 2.1.x -ka- some files are refusing to upgrade with
java.lang.ClassCastException: null
> ------------------------------------------------------------------------------------------------------------------------
>                 Key: CASSANDRA-10170
>                 URL:
>             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(
>     at org.apache.cassandra.db.AbstractCell$1.computeNext(
>     at org.apache.cassandra.db.AbstractCell$1.computeNext(
>     at
>     at
>     at
>     at org.apache.cassandra.utils.MergeIterator$OneToOne.computeNext(
>     at
>     at
>     at$7.computeNext(
>     at
>     at
>     at org.apache.cassandra.db.ColumnIndex$Builder.buildForCompaction(
>     at org.apache.cassandra.db.compaction.LazilyCompactedRow.write(
>     at
>     at
>     at org.apache.cassandra.db.compaction.Upgrader.upgrade(
>     at
> {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

View raw message