cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darla Baker (JIRA)" <j...@apache.org>
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

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

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}
CassandraDaemon.java (line 199) Exception in thread Thread[ReadStage:97,5,main]
java.lang.AssertionError
        at org.apache.cassandra.db.filter.ColumnCounter$GroupByPrefix.count(ColumnCounter.java:117)
        at org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:192)
        at org.apache.cassandra.db.filter.QueryFilter.collateColumns(QueryFilter.java:122)
        at org.apache.cassandra.db.filter.QueryFilter.collateOnDiskAtom(QueryFilter.java:80)
        at org.apache.cassandra.db.RowIteratorFactory$2.getReduced(RowIteratorFactory.java:101)
        at org.apache.cassandra.db.RowIteratorFactory$2.getReduced(RowIteratorFactory.java:75)
        at org.apache.cassandra.utils.MergeIterator$ManyToOne.consume(MergeIterator.java:115)
        at org.apache.cassandra.utils.MergeIterator$ManyToOne.computeNext(MergeIterator.java:98)
        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.ColumnFamilyStore$9.computeNext(ColumnFamilyStore.java:1594)
        at org.apache.cassandra.db.ColumnFamilyStore$9.computeNext(ColumnFamilyStore.java:1590)
        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.ColumnFamilyStore.filter(ColumnFamilyStore.java:1750)
        at org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(ColumnFamilyStore.java:1709)
        at org.apache.cassandra.db.RangeSliceCommand.executeLocally(RangeSliceCommand.java:137)
        at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(StorageProxy.java:1394)
        at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1936)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
{code}

> 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: 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)

Mime
View raw message